Document.PrintOut Method

Definition

Prints all or part of the document.

public void PrintOut (ref object Background, ref object Append, ref object Range, ref object OutputFileName, ref object From, ref object To, ref object Item, ref object Copies, ref object Pages, ref object PageType, ref object PrintToFile, ref object Collate, ref object ActivePrinterMacGX, ref object ManualDuplexPrint, ref object PrintZoomColumn, ref object PrintZoomRow, ref object PrintZoomPaperWidth, ref object PrintZoomPaperHeight);
abstract member PrintOut : obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj -> unit
Public Sub PrintOut (Optional ByRef Background As Object, Optional ByRef Append As Object, Optional ByRef Range As Object, Optional ByRef OutputFileName As Object, Optional ByRef From As Object, Optional ByRef To As Object, Optional ByRef Item As Object, Optional ByRef Copies As Object, Optional ByRef Pages As Object, Optional ByRef PageType As Object, Optional ByRef PrintToFile As Object, Optional ByRef Collate As Object, Optional ByRef ActivePrinterMacGX As Object, Optional ByRef ManualDuplexPrint As Object, Optional ByRef PrintZoomColumn As Object, Optional ByRef PrintZoomRow As Object, Optional ByRef PrintZoomPaperWidth As Object, Optional ByRef PrintZoomPaperHeight As Object)

Parameters

Background
Object

true to have the customization code continue while Microsoft Office Word prints the document.

Append
Object

true to append the document to the file specified by the OutputFileName argument; false to overwrite the contents of OutputFileName.

Range
Object

The page range. Can be any WdPrintOutRange value.

OutputFileName
Object

If PrintToFile is true, this argument specifies the path and file name of the output file.

From
Object

The starting page number when Range is set to wdPrintFromTo.

To
Object

The ending page number when Range is set to wdPrintFromTo.

Item
Object

The item to be printed. Can be any WdPrintOutItem value.

Copies
Object

The number of copies to be printed.

Pages
Object

The page numbers and page ranges to be printed, separated by commas. For example, "2, 6-10" prints page 2 and pages 6 through 10.

PageType
Object

The type of pages to be printed. Can be any WdPrintOutPages value.

PrintToFile
Object

true to send printer instructions to a file. Make sure to specify a file name with OutputFileName.

Collate
Object

When printing multiple copies of a document, true to print all pages of the document before printing the next copy.

ActivePrinterMacGX
Object

This argument is available only in Microsoft Office Macintosh Edition. For additional information about this argument, consult the language reference Help included with Microsoft Office Macintosh Edition.

ManualDuplexPrint
Object

true to print a two-sided document on a printer without a duplex printing kit. If this argument is true, the PrintBackground and PrintReverse properties are ignored. Use the PrintOddPagesInAscendingOrder and PrintEvenPagesInAscendingOrder properties to control the output during manual duplex printing. This argument might not be available to you, depending on the language support (U.S. English, for example) that you selected or installed.

PrintZoomColumn
Object

The number of pages you want Word to fit horizontally on one page. Can be 1, 2, 3, or 4. Use with the PrintZoomRow argument to print multiple pages on a single sheet.

PrintZoomRow
Object

The number of pages you want Word to fit vertically on one page. Can be 1, 2, or 4. Use with the PrintZoomColumn argument to print multiple pages on a single sheet.

PrintZoomPaperWidth
Object

The width to which you want Word to scale printed pages, in twips (20 twips = 1 point; 72 points = 1 inch).

PrintZoomPaperHeight
Object

The height to which you want Word to scale printed pages, in twips (20 twips = 1 point; 72 points = 1 inch).

Remarks

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Applies to