Foxtable(狐表)用户栏目专家坐堂 → 纸张横向页脚对齐问题


  共有2526人关注过本帖树形打印复制链接

主题:纸张横向页脚对齐问题

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2019/4/2 17:18:00 [显示全部帖子]

参考

 

Dim app As New MSWord.Application
try
    Dim doc = app.Documents.Open("d:\test.doc")
   
    app.ActiveWindow.ActivePane.View.SeekView = MSWord.WdSeekView.wdSeekCurrentPageHeader
    app.ActiveWindow.Selection.WholeStory
    app.ActiveWindow.Selection.TypeBackspace
    app.ActiveWindow.Selection.Font.Size = 10
    app.ActiveWindow.Selection.TypeText(Text:="54545" & vbTab & "54545555555555" & vbTab & "34534535345")
    app.ActiveWindow.ActivePane.View.SeekView = MSWord.WdSeekView.wdSeekCurrentPageFooter
   
    app.Selection.HeaderFooter.LinkToPrevious = False
    app.Selection.HeaderFooter.Range.ParagraphFormat.Alignment = msword.WdParagraphAlignment.wdAlignParagraphCenter
    Dim s = "54545" & vbTab & "54545555555555" & vbTab & "34534535345"
    app.ActiveWindow.ActivePane.Selection.InsertAfter(s)

   
    app.ActiveWindow.ActivePane.View.SeekView =  MSWord.WdSeekView.wdSeekMainDocument
    app.Visible = True
   
catch ex As exception
    msgbox(ex.message)
    app.Quit
finally
    app.Quit
End try


 回到顶部