vb.net 怎么选择word中的某一页某一段
各位大佬
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
有没有通过页访问该页某段的方法