【问题标题】:Word VBA Printing the whole documentWord VBA 打印整个文档
【发布时间】:2014-01-10 22:53:45
【问题描述】:

目前 Sub CurrentpageP() 仅打印文档的第一页。

想不出办法让它打印整个文档。我已将页面参数更改为以下但没有运气“1-9999”和“1-2”。

Link here 用于长代码 - 下面是 sn -p of 部分。

Sub CurrentpageP()
With ActiveDocument.PageSetup
    .FirstPageTray = 281
    .OtherPagesTray = 281
End With
Application.PrintOut FileName:="", Range:=wdPrintCurrentPage, Item:= _
    wdPrintDocumentContent, Copies:=1, pages:="", PageType:=wdPrintAllPages, _
    Collate:=True, Background:=True, PrintToFile:=False, PrintZoomColumn:=0, _
    PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0

End Sub

【问题讨论】:

    标签: vba printing ms-word


    【解决方案1】:

    当您将范围设置为“wdPrintCurrentPage”时,您告诉 Word 只打印当前页面。如果要打印整个文档,需要将 Range 设置为“wdPrintAllDocument”。范围类型在此处列出: http://msdn.microsoft.com/en-us/library/office/bb237956(v=office.12).aspx

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-04-11
      • 1970-01-01
      • 2023-04-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多