FilePrint Method

Prints the active view.

Syntax

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

*expression   *     Optional. An expression that returns an Application object.

FromPage    Optional Integer. A number that specifies the first page to print. The default value is 1.

ToPage    Optional Integer. A number that specifies the last page to print. The default is the last page in the project.

PageBreaks    Optional Boolean. True if Microsoft Office Project 2003 uses manual page breaks when printing. The default value is True.

Draft    Optional Boolean. True if Project prints the active view in draft mode. The default value is False.

Copies    Optional Integer. A number that specifies the number of copies to print. The default value is 1.

FromDate    Optional Variant. A number or string that specifies the first date to print. The default is the start date of the project.

ToDate    Optional Variant. A number or string that specifies the last date to print. The default is the finish date of the project.

OnePageWide    Optional Boolean. True if Project prints only the leftmost columns of the active view. The default value is False.

Preview    Optional Boolean. True if Project previews the active view rather than printing it. The default value is False.

Color    Optional Boolean. True if Project prints the active view in color. The default value is False.

Example

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

Sub PrintViewWithoutPageBreaks()
    FilePrint PageBreaks:=False
End Sub

Applies to | Application Object

See Also | FileOpen Method | FilePrintPreview Method | FilePrintSetup Method | FileSaveAs Method