Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Document.PrintOutEx Method

Office 2007
Prints all or part of the specified publication.


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

expression   A variable that represents a Document object.


NameRequired/OptionalData TypeDescription
FromOptionalLongThe starting page number.
ToOptionalLongThe ending page number.
PrintToFileOptionalStringThe path and file name of a document to be printed to a file.
CopiesOptionalLongThe number of copies to be printed.
CollateOptionalBooleanWhen printing multiple copies of a document, True to print all pages of the document before printing the next copy.
PrintStyleOptionalPbPrintStyleThe print style to use. See Remarks for possible values.


The PrintStyle parameter can be one of the PbPrintStyle constants declared in the Microsoft Office Publisher type library.

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


This example prints the active publication.

Visual Basic for Applications
Sub PrintActivePublication()
End Sub

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.