各位大佬
vb.net 怎么選擇word中的某一頁某一段
Dim cuPage As Word.Range
Dim cuParagh As Word.Paragraph
cuPage = myWordDocument.GoTo(wdGoToPage, wdGoToAbsolute, PageIndex) '定位到具體某一頁
cuParagh = cuPage.GoTo(wdGoToLine, 1, ParaghIndex)
cuParagh = cuPage.Paragraphs(ParaghIndex) '定位到具體某一段
最后兩句代碼運行時都出錯
但是通過section 好像可以
myWordDocument.Sections(2).Range.Paragraphs(ParaghIndex).LineSpacing
有沒有通過頁訪問該頁某段的方法
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/119108.html
上一篇:Python為什么無法在官方IDLE的shell上覆寫輸出一行?
下一篇:中軟防水壩是否會使筆記本斷網
