Word.DocumentPrintOutOptions interface
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Provides configuration options for the Document.printOut method.
Remarks
Properties
active |
If provided, specifies the printer name. The default value is an empty string. This argument is available only in Microsoft Office Macintosh Edition. |
append | If provided, specifies whether to append to an existing file. The default value is |
background | If provided, specifies whether to print in the background. The default value is |
collate | If provided, specifies whether to collate pages. The default value is |
copies | If provided, specifies the number of copies to print. The default value is |
from | If provided, specifies the starting page number. The default value is |
item | If provided, specifies the item to print. The default value is |
manual |
If provided, specifies whether to manually duplex print. The default value is |
output |
If provided, specifies the name of the output file. The default value is an empty string. |
pages | If provided, specifies specific pages to print. The default value is an empty string. |
page |
If provided, specifies the page order. The default value is |
print |
If provided, specifies whether to print to file. The default value is |
print |
If provided, specifies the zoom column setting. The default value is |
print |
If provided, specifies the paper height for printing in twips (20 twips = 1 point; 72 points = 1 inch). The default value is |
print |
If provided, specifies the paper width for printing in twips (20 twips = 1 point; 72 points = 1 inch). The default value is |
print |
If provided, specifies the zoom row setting. The default value is |
range | If provided, specifies the range to print. The default value is |
to | If provided, specifies the ending page number. The default value is the last page of the document. |
Property Details
activePrinterMacGX
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the printer name. The default value is an empty string. This argument is available only in Microsoft Office Macintosh Edition.
activePrinterMacGX?: string;
Property Value
string
Remarks
append
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies whether to append to an existing file. The default value is false
.
append?: boolean;
Property Value
boolean
Remarks
background
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies whether to print in the background. The default value is true
.
background?: boolean;
Property Value
boolean
Remarks
collate
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies whether to collate pages. The default value is true
.
collate?: boolean;
Property Value
boolean
Remarks
copies
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the number of copies to print. The default value is 1
.
copies?: number;
Property Value
number
Remarks
from
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the starting page number. The default value is 1
.
from?: number;
Property Value
number
Remarks
item
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the item to print. The default value is PrintOutItem.documentContent
.
item?: Word.PrintOutItem | "DocumentContent" | "Properties" | "Comments" | "Markup" | "Styles" | "AutoTextEntries" | "KeyAssignments" | "Envelope" | "DocumentWithMarkup";
Property Value
Word.PrintOutItem | "DocumentContent" | "Properties" | "Comments" | "Markup" | "Styles" | "AutoTextEntries" | "KeyAssignments" | "Envelope" | "DocumentWithMarkup"
Remarks
manualDuplexPrint
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies whether to manually duplex print. The default value is false
.
manualDuplexPrint?: boolean;
Property Value
boolean
Remarks
outputFileName
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the name of the output file. The default value is an empty string.
outputFileName?: string;
Property Value
string
Remarks
pages
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies specific pages to print. The default value is an empty string.
pages?: string;
Property Value
string
Remarks
pageType
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the page order. The default value is PrintOutPages.allPages
.
pageType?: Word.PrintOutPages | "All" | "OddOnly" | "EvenOnly";
Property Value
Word.PrintOutPages | "All" | "OddOnly" | "EvenOnly"
Remarks
printToFile
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies whether to print to file. The default value is false
.
printToFile?: boolean;
Property Value
boolean
Remarks
printZoomColumn
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the zoom column setting. The default value is 1
.
printZoomColumn?: number;
Property Value
number
Remarks
printZoomPaperHeight
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the paper height for printing in twips (20 twips = 1 point; 72 points = 1 inch). The default value is 0
(use original height).
printZoomPaperHeight?: number;
Property Value
number
Remarks
printZoomPaperWidth
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the paper width for printing in twips (20 twips = 1 point; 72 points = 1 inch). The default value is 0
(use original width).
printZoomPaperWidth?: number;
Property Value
number
Remarks
printZoomRow
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the zoom row setting. The default value is 1
.
printZoomRow?: number;
Property Value
number
Remarks
range
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the range to print. The default value is allDocument
.
range?: Word.PrintOutRange | "AllDocument" | "Selection" | "CurrentPage" | "FromTo" | "RangeOfPages";
Property Value
Word.PrintOutRange | "AllDocument" | "Selection" | "CurrentPage" | "FromTo" | "RangeOfPages"
Remarks
to
Note
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
If provided, specifies the ending page number. The default value is the last page of the document.
to?: number;
Property Value
number