Click or drag to resize

IPageSetupBase Properties

The IPageSetupBase type exposes the following members.

Properties
Name Description
Public property AutoFirstPageNumber
Indicates whether FirstPageNumber is set to Auto or not.
Public property BackgoundImage
Gets / sets background image.
Public property BlackAndWhite
True if elements of the document will be printed in black and white. Read / write Boolean.
Public property BottomMargin
Returns or sets the size of the bottom margin, in inches. Read / write Double.
Public property CenterFooter
Returns or sets the center part of the footer. Read / write String.
Public property CenterFooterImage
Gets / set image for center part of the footer.
Public property CenterHeader
Returns or sets the center part of the header. Read / write String.
Public property CenterHeaderImage
Gets / set image for center part of the header.
Public property CenterHorizontally
True if the sheet is centered horizontally on the page when it is printed. Read / write Boolean.
Public property CenterVertically
True if the sheet is centered vertically on the page when it is printed. Read / write Boolean.
Public property Copies
Number of copies to print.
Public property Draft
True if the sheet will be printed without graphics. Read / write Boolean.
Public property FirstPageNumber
Returns or sets the first page number that will be used when this sheet is printed. If xlAutomatic, Microsoft Excel chooses the first page number. The default is xlAutomatic. Read / write Long.
Public property FooterMarginInch
Returns or sets the distance from the bottom of the page to the footer, in inches. Read / write Double.
Public property HeaderMarginInch
Returns or sets the distance from the top of the page to the header, in inches. Read / write Double.
Public property LeftFooter
Returns or sets the left part of the footer. Read / write String. &L Left aligns the characters that follow. &C Centers the characters that follow. &R Right aligns the characters that follow. &E Turns double-underline printing on or off. &X Turns superscript printing on or off. &Y Turns subscript printing on or off. &B Turns bold printing on or off. &I Turns italic printing on or off. &U Turns underline printing on or off. &S Turns strikethrough printing on or off. &D Prints the current date. &T Prints the current time. &F Prints the name of the document. &A Prints the name of the workbook tab. &P Prints the page number. &P+number Prints the page number plus the specified number. &P-number Prints the page number minus the specified number. && Prints a single ampersand. & "fontname" Prints the characters that follow in the specified font. Be sure to include the double quotation marks. &nn Prints the characters that follow in the specified font size. Use a two-digit number to specify a size in points. &N Prints the total number of pages in the document.
Public property LeftFooterImage
Gets / set image for left part of the footer.
Public property LeftHeader
Returns or sets the left part of the header. Read / write String.
Public property LeftHeaderImage
Gets / set image for left part of the header.
Public property LeftMargin
Returns or sets the size of the left margin, in inches. Read / write Double.
Public property Order
Returns or sets the order that Microsoft Excel uses to number pages when printing a large worksheet. Read / write ExcelOrder.
Public property Orientation
Portrait or landscape printing mode. Read / write ExcelPageOrientation.
Public property PaperSize
Returns or sets the size of the paper. Read / write ExcelPaperSize.
Public property Parent
Gets the parent object of the current instance.
(Inherited from IExcelApplication .)
Public property PrintComments
Returns or sets the way comments are printed with the sheet. Read / write ExcelPrintLocation.
Public property PrintErrors
Sets or returns an ExcelPrintErrors constant specifying the type of print error displayed. This feature allows users to suppress the display of error values when printing a worksheet. Read / write.
Public property PrintNotes
True if cell notes are printed as end notes with the sheet. Applies only to worksheets. Read / write Boolean.
Public property PrintQuality
Returns or sets the print quality. Read / write ushort.
Public property RightFooter
Returns or sets the right part of the footer. Read / write String.
Public property RightFooterImage
Gets / set image for right part of the footer.
Public property RightHeader
Returns or sets the right part of the header. Read / write String.
Public property RightHeaderImage
Gets / set image for right part of the header.
Public property RightMargin
Returns or sets the size of the right margin, in inches. Read / write Double.
Public property TopMargin
Returns or sets the size of the top margin, in inches. Read / write Double.
Public property Zoom
Returns or sets a percentage (between 10 and 400 percent) by which Microsoft Excel will scale the worksheet for printing. Applies only to worksheets. Read / write ushort.
Top
See Also