Document.PrintOutEx method (Publisher)

Prints all or part of the specified publication.

Syntax

expression.PrintOut (From, To, PrintToFile, Copies, Collate, PrintStyle)

expression A variable that represents a Document object.

Parameters

Name Required/Optional Data type Description
From Optional Long The starting page number.
To Optional Long The ending page number.
PrintToFile Optional String The path and file name of a document to be printed to a file.
Copies Optional Long The number of copies to be printed.
Collate Optional Boolean When printing multiple copies of a document, True to print all pages of the document before printing the next copy.
PrintStyle Optional PbPrintStyle The print style to use. Can be one of the PbPrintStyle constants declared in the Microsoft Publisher type library.

Remarks

If PrintStyle is pbPrintStyleMultipleCopiesPerSheet or pbPrintStyleMultiplePagesPerSheet, Publisher ignores any value that you pass for the Collate parameter.

Example

This example prints the active publication.

Sub PrintActivePublication() 
 ThisDocument.PrintOutEx 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.