Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.FilePrint Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Prints the active view.

Syntax

expression. FilePrint( ** FromPage, ** ToPage, ** PageBreaks, ** Draft, ** Copies, ** FromDate, ** ToDate, ** OnePageWide, ** Preview, ** Color, ** ShowIEPrintDialog** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
FromPageOptionalIntegerA number that specifies the first page to print. The default value is 1.
ToPageOptionalIntegerA number that specifies the last page to print. The default is the last page in the project.
PageBreaksOptionalBooleanTrue if Project uses manual page breaks when printing. The default value is True.
DraftOptionalBooleanTrue if Project prints the active view in draft mode. The default value is False.
CopiesOptionalIntegerA number that specifies the number of copies to print. The default value is 1.
FromDateOptionalVariantA number or string that specifies the first date to print. The default is the start date of the project.
ToDateOptionalVariantA number or string that specifies the last date to print. The default is the finish date of the project.
OnePageWideOptionalBooleanTrue if Project prints only the leftmost columns of the active view. The default value is False.
PreviewOptionalBooleanTrue if Project previews the active view rather than printing it. The default value is False.
ColorOptionalBooleanTrue if Project prints the active view in color. The default value is False.
ShowIEPrintDialogOptionalBooleanIf True, shows the Internet Explorer print dialog while printing.

Return Value

Boolean

Remarks

FilePrint with no arguments acts the same as the FilePrintPreview method. It opens the Backstage view and displays the Print tab with a print preview.

Example

The following example prints the active view without using manual page breaks.

Sub PrintViewWithoutPageBreaks() 
    FilePrint PageBreaks:=False 
End Sub

The following command prints the active view to the default printer, and shows the Internet Explorer print dialog.

Application.FilePrint ShowIEPrintDialog:=True
© 2018 Microsoft