Winnovative Excel Library

ExcelWorksheetPageSetup Properties

Winnovative Excel Library Documentation

The ExcelWorksheetPageSetup type exposes the following members.

Properties

  NameDescription
Public propertyBackgroundPicture
Gets or sets the background picture of the worksheet.
Public propertyBottomMargin
Gets or sets the bottom margin size in inches.
(Inherited from ExcelPageSetup.)
Public propertyCenterFooterFormat
Gets or sets the format of the center part of the footer. Formatting and VBA codes for headers and footers are below. &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. &"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. &color - Prints the characters in the specified color. User supplies a hexidecimal color value. &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. &N - Prints the total number of pages in the document. &Z - Prints the file path. &G - Inserts an image.
(Inherited from ExcelPageSetup.)
Public propertyCenterFooterPicture
Gets or sets the image displayed in the center part of the footer.
(Inherited from ExcelPageSetup.)
Public propertyCenterHeaderFormat
Gets or sets the format the center part of the header. Formatting and VBA codes for headers and footers are below. &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. &"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. &color - Prints the characters in the specified color. User supplies a hexidecimal color value. &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. &N - Prints the total number of pages in the document. &Z - Prints the file path. &G - Inserts an image.
(Inherited from ExcelPageSetup.)
Public propertyCenterHeaderPicture
Gets or sets the image displayed in the center part of the header.
(Inherited from ExcelPageSetup.)
Public propertyCenterHorizontally
Gets or sets indicating if the sheet is centered horizonally.
(Inherited from ExcelPageSetup.)
Public propertyCenterVertically
Gets or sets indicating if the sheet is centered vertically.
(Inherited from ExcelPageSetup.)
Public propertyFitToPagesMode
Gets or sets a value that indicates whether the worksheet is scaled for printing using Zoom property or FitToPagesWide and FitToPagesTall properties. Default value is false.
Public propertyFitToPagesTall
Gets or sets the number of pages tall the worksheet will be scaled to when it's printed.
Public propertyFitToPagesWide
Gets or sets the number of pages wide the worksheet will be scaled to when it's printed.
Public propertyFooterMargin
Gets or sets the distance from the bottom of the page to the footer in inches.
(Inherited from ExcelPageSetup.)
Public propertyHeaderMargin
Gets or sets the distance from the top of the page to the header in inches.
(Inherited from ExcelPageSetup.)
Public propertyLeftFooterFormat
Gets or sets the format of the left part of the footer. Formatting and VBA codes for headers and footers are below. &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. &"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. &color - Prints the characters in the specified color. User supplies a hexidecimal color value. &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. &N - Prints the total number of pages in the document. &Z - Prints the file path. &G - Inserts an image.
(Inherited from ExcelPageSetup.)
Public propertyLeftFooterPicture
Gets or sets the image displayed in the left part of the footer.
(Inherited from ExcelPageSetup.)
Public propertyLeftHeaderFormat
Gets or sets the format of the left part of the header. Formatting and VBA codes for headers and footers are below. &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. &"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. &color - Prints the characters in the specified color. User supplies a hexidecimal color value. &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. &N - Prints the total number of pages in the document. &Z - Prints the file path. &G - Inserts an image.
(Inherited from ExcelPageSetup.)
Public propertyLeftHeaderPicture
Gets or sets the image displayed in the left part of the header.
(Inherited from ExcelPageSetup.)
Public propertyLeftMargin
Gets or sets the left margin size in inches.
(Inherited from ExcelPageSetup.)
Public propertyOrientation
Gets or sets the page orientation to portrait or landscape mode.
(Inherited from ExcelPageSetup.)
Public propertyPaperSize
Gets or sets the page paper size.
(Inherited from ExcelPageSetup.)
Public propertyPrintArea
Gets or sets the range to be printed as a range reference string using A1 notation (e.g. A1:E8).
Public propertyPrintBlackAndWhite
Gets or sets a flag indicating if the page will be printed in black and white.
(Inherited from ExcelPageSetup.)
Public propertyPrintCommentsLocation
Gets or sets the location where the comments are printed
Public propertyPrintCopiesNumber
Gets or sets the number of copies to print.
(Inherited from ExcelPageSetup.)
Public propertyPrintDraftMode
Gets or sets a flag indicating if the page will be printed in draft mode.
(Inherited from ExcelPageSetup.)
Public propertyPrintErrorsMode
Gets or sets the mode the errors are printed.
Public propertyPrintFirstPageNumber
Gets or sets the first page number printing. This property has effect if the PrintFirstPageNumberAuto is false.
(Inherited from ExcelPageSetup.)
Public propertyPrintFirstPageNumberAuto
Gets or sets a flag indicating if the first page number is automatically selected by Excel viewer. If this property is false the first page number is given by the PrintFirstPageNumber property.
(Inherited from ExcelPageSetup.)
Public propertyPrintGridlines
Gets or sets a flag indicating if the cell gridlines are printed on the page.
Public propertyPrintHeadings
Gets or sets a flag indicating if the row and column headings are printed with this page.
Public propertyPrintNotes
Gets or sets a flag indicating if the cell notes are printed as end notes in the worksheet.
Public propertyPrintOrder
Gets or sets the order used to number pages when printing a large worksheet.
(Inherited from ExcelPageSetup.)
Public propertyPrintQuality
Gets or sets the print quality in dpi.
(Inherited from ExcelPageSetup.)
Public propertyPrintTitleColumns
Gets or sets the columns that contain the cells to be repeated on the left side of each page, as a string in A1 notation (e.g. $A:$B).
Public propertyPrintTitleRows
Gets or sets the rows that contain the cells to be repeated at the top of each page, as a string in A1 notation (e.g. $1:$2).
Public propertyRightFooterFormat
Gets or sets the format of the right part of the footer. Formatting and VBA codes for headers and footers are below. &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. &"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. &color - Prints the characters in the specified color. User supplies a hexidecimal color value. &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. &N - Prints the total number of pages in the document. &Z - Prints the file path. &G - Inserts an image.
(Inherited from ExcelPageSetup.)
Public propertyRightFooterPicture
Gets or sets the image displayed in the right part of the footer.
(Inherited from ExcelPageSetup.)
Public propertyRightHeaderFormat
Gets or sets the format of the right part of the header. Formatting and VBA codes for headers and footers are below. &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. &"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. &color - Prints the characters in the specified color. User supplies a hexidecimal color value. &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. &N - Prints the total number of pages in the document. &Z - Prints the file path. &G - Inserts an image.
(Inherited from ExcelPageSetup.)
Public propertyRightHeaderPicture
Gets or sets the image displayed in the right part of the header.
(Inherited from ExcelPageSetup.)
Public propertyRightMargin
Gets or sets the right margin size in inches.
(Inherited from ExcelPageSetup.)
Public propertyTopMargin
Gets or sets the top margin size in inches.
(Inherited from ExcelPageSetup.)
Public propertyZoom
Returns or sets a percentage between 10 and 400 percent by which the the worksheet will be scaled for printing.
Top
See Also

Reference