Condividi tramite


Application.FilePrint Method (Project)

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

Name

Required/Optional

Data Type

Description

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 Project 2010 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.

ShowIEPrintDialog

Optional

Boolean

NOT available at this time.

Return Value

Boolean

Example

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

Sub PrintViewWithoutPageBreaks() 
 FilePrint PageBreaks:=False 
End Sub