Word 打印 PrintOut 方法

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
原文:http://tcoline.com/resource/vba/Word/top_word_printout.htm
發佈了7 篇原創文章 · 獲贊 7 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章