FilePageSetupPage Method
Sets up pages for printing.
Syntax
expression**.FilePageSetupPage(Name, Portrait, PercentScale, PagesTall, PagesWide, PaperSize, FirstPageNumber)**
*expression * Optional. An expression that returns an Application object.
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 Integer. The width the printed project should be fit to, in pages. The PagesWide argument is ignored if PercentScale is specified.
PjPaperSize
Constant | Meaning |
---|---|
pjPaperLetter | Letter (8-1/2 in. x 11 in.) |
pjPaperLetterSmall | Letter Small (8-1/2 in. x 11 in.) |
pjPaperTabloid | Tabloid (11 in. x 17 in.) |
pjPaperLedger | Ledger (17 in. x 11 in.) |
pjPaperLegal | Legal (8-1/2 in. x 14 in.) |
pjPaperStatement | Statement (5-1/2 in. x 8-1/2 in.) |
pjPaperExecutive | Executive (7-1/2 in. x 10-1/2 in.) |
pjPaperA3 | A3 (297 mm x 420 mm) |
pjPaperA4 | A4 (210 mm x 297 mm) |
pjPaperA4Small | A4 Small (210 mm x 297 mm) |
pjPaperA5 | A5 (148 mm x 210 mm) |
pjPaperB4 | B4 (250 mm x 354 mm) |
pjPaperB5 | B5 (182 mm x 257 mm) |
pjPaperFolio | Folio (8-1/2 in. x 13 in.) |
pjPaperQuarto | Quarto (215 mm x 275 mm) |
pjPaper10x14 | 10 in. x 14 in. |
pjPaper11x17 | 11 in. x 17 in. |
pjPaperNote | Note (8-1/2 in. x 11 in.) |
pjPaperEnvelope9 | Envelope #9 (3-7/8 in. x 8-7/8 in.) |
pjPaperEnvelope10 | Envelope #10 (4-1/8 in. x 9-1/2 in.) |
pjPaperEnvelope11 | Envelope #11 (4-1/2 in. x 10-3/8 in.) |
pjPaperEnvelope12 | Envelope #12 (4-1/2 in. x 11 in.) |
pjPaperEnvelope14 | Envelope #14 (5 in. x 11-1/2 in.) |
pjPaperCsheet | C size sheet |
pjPaperDsheet | D size sheet |
pjPaperEsheet | E size sheet |
pjPaperEnvelopeDL | Envelope DL (110 mm x 220 mm) |
pjPaperEnvelopeC3 | Envelope C3 (324 mm x 458 mm) |
pjPaperEnvelopeC4 | Envelope C4 (229 mm x 324 mm) |
pjPaperEnvelopeC5 | Envelope C5 (162 mm x 229 mm) |
pjPaperEnvelopeC6 | Envelope C6 (114 mm x 162 mm) |
pjPaperEnvelopeC65 | Envelope C65 (114 mm x 229 mm) |
pjPaperEnvelopeB4 | Envelope B4 (250 mm x 353 mm) |
pjPaperEnvelopeB5 | Envelope B5 (176 mm x 250 mm) |
pjPaperEnvelopeB6 | Envelope B6 (176 mm x 125 mm) |
pjPaperEnvelopeItaly | Envelope (110 mm x 230 mm) |
pjPaperEnvelopeMonarch | Envelope Monarch (3-7/8 in. x 7-1/2 in.) |
pjPaperEnvelopePersonal | Envelope (3-5/8 in. x 6-1/2 in.) |
pjPaperFanfoldUS | U.S. Standard Fanfold (14-7/8 in. x 11 in.) |
pjPaperFanfoldStdGerman | German Standard Fanfold (8-1/2 in. x 12 in.) |
pjPaperFanfoldLegalGerman | German Legal Fanfold (8-1/2 in. x 13 in.) |
pjPaperUser | User-defined |
pjPaperDefault | The default paper size |
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".
Remarks
Using the FilePageSetupPage method without specifying any arguments displays the Page Setup dialog box with the Page tab selected.
Applies to | Application Object
See Also | FilePageSetupCalendar Method | FilePageSetupCalendarText Method | FilePageSetupFooter Method | FilePageSetupHeader Method | FilePageSetupLegend Method | FilePageSetupMargins Method | FilePageSetupView Method