Word 打印 PrintOut 方法

PrintOut(

    Background, Append, Range, OutputFileName, 

    From, To, Item, Copies, 

    Pages, PageType, PrintToFile, Collate,

    FileName, ActivePrinterMacGX, ManualDuplexPrint, PrintZoomColumn,

    PrintZoomRow, PrintZoomPaperWidth, PrintZoomPaperHeight

)

参数

参数 意义
Background   是否后台打印
Append   是否追加到输出文件
Range   页面范围
OutputFileName 输出文件名,如果 PrintToFile=TRUE
From 起始页码
To 结束页码
Item  
Copies   份数
Pages   页码范围
PageType   奇偶页,wdPrintAllPages、wdPrintEvenPagesOnly 或 wdPrintOddPagesOnly
PrintToFile 是否输出到文件
Collate   是否分页
FileName WORD 文档名,用于 Application
ActivePrinterMacGX   Macintosh 版
ManualDuplexPrint 是否双面打印
PrintZoomColumn   水平页数,1、2、3、4
PrintZoomRow   垂直页数,1、2、3、4
PrintZoomWidth   缩放宽度。以缇为单位(20 缇 = 1 磅;72 磅 = 1 英寸)
PrintZoomHeight   缩放高主

Range 参数

常量 意义
wdPrintAllDocument 打印全部
wdPrintCurrentPage 打印本页
wdPrintFromTo 打印指定页
wdPrintRangeOfPages  
wdPrintSelection 打印选定文字

Item 参数

常量 意义
wdPrintAutoTextEntries  
wdPrintComments  
wdPrintDocumentContent  
wdPrintKeyAssignments  
wdPrintProperties  
wdPrintStyles