Application.FilePageSetupPage Method
Project Developer Reference |
Sets up pages for printing.
Syntax
expression.FilePageSetupPage(Name, Portrait, PercentScale, PagesTall, PagesWide, PaperSize, FirstPageNumber)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Name | Optional | String | The name of the view or report for which to set up pages for printing. |
Portrait | Optional | Boolean | True if the page orientation is portrait. False if the page orientation is landscape. |
PercentScale | Optional | Integer | The scaling factor, specified as a percentage of the original. Can be a number between 1 and 500. |
PagesTall | Optional | Integer | The height the printed project should be fit to, in pages. The PagesTall argument is ignored if PercentScale is specified. |
PagesWide | Optional | Variant | The width the printed project should be fit to, in pages. The PagesWide argument is ignored if PercentScale is specified. |
PaperSize | Optional | Long | The size of the paper to be used when printing. (Some printers may not support all of these paper sizes.) Can be one of the PjPaperSize constants. |
FirstPageNumber | Optional | String | Any valid integer to print on the first page or the string "Auto" to print the actual number of the first printed page. (For example, "3" if the first printed page is page 3.) Succeeding page numbers are incremented on this number. The default value is "Auto". |
Return Value
Boolean
Remarks
Using the FilePageSetupPage method without specifying any arguments displays the Page Setup dialog box with the Page tab selected.
See Also