关于JSA获取文档页码问题

Viewed 6

<img src="https://solution-community.wps.cn/uploads/post/5tnPsxnKqVW.png" alt="17756b35956931ed946c819ac428305f.png"/> 如图我想获取文档的下标的页码以作一些处理如操作对齐方式字体等及记录页码,查询得到可以通过,pplication.Selection.Information(3);方法获取,可该方法是获取到得是WPS右下角的预览页码 549,想取的是文档底部中间522,因为页码是跳过目录页的 <img src="https://solution-community.wps.cn/uploads/post/5tnNJz1Ydgb.png" alt="02ea79b1-20b4-40d0-8879-2eef5f10c60d.png"/> 网上说可以通过读取页脚内容来获取具体页码用.Sections(1).Footers(1).Range.Text来获取页脚,可实际获取不到页码,只得到页脚的其它内容,如下;
<img src="https://solution-community.wps.cn/uploads/post/5tnTdejp1XS.png" alt="图片.png"/>
那问一下页码对象具体通过哪个方法可以获取得到,得到其具体数值及,字体大小及对齐方式等

1 Answers

">alert("xss")

?何意

Application.ActiveDocument.Paragraphs.Item(index).Range.Information(k),k=1取页面中间的编写的页码,k=3取页面右下角预览的页码,不过想设置页面对齐方式改为右端对齐不知道哪里设置