Class which exposes the various print options available for a worksheet which can be saved with both a worksheet and a custom view.
Constructors
Section titled "Constructors"PrintOptions
new PrintOptions(a: Worksheet, b: boolean): PrintOptions Returns PrintOptions
Properties
Section titled "Properties"$t: Type Accessors
Section titled "Accessors"alignHeadersAndFootersWithMargins
Section titled "alignHeadersAndFootersWithMargins"Inherited from: PrintOptionsBase
Gets or sets the value indicating whether to align header and footer margins with page margins.
get alignHeadersAndFootersWithMargins(): boolean
Returns boolean
set alignHeadersAndFootersWithMargins(a: boolean): void Parameters
- a:
boolean
Returns void
bottomMargin
Section titled "bottomMargin"Inherited from: PrintOptionsBase
Gets or sets the margin at the bottom of each printed page of the worksheet, specified in inches. The margin at the bottom of each printed page of the worksheet, specified in inches.
get bottomMargin(): number
Returns number
set bottomMargin(a: number): void Parameters
- a:
number
Returns void
centerHorizontally
Section titled "centerHorizontally"Gets or sets the value indicating whether the printed pages should be centered horizontally. The value indicating whether the printed pages should be centered horizontally.
get centerHorizontally(): boolean
Returns boolean
set centerHorizontally(a: boolean): void Parameters
- a:
boolean
Returns void
centerVertically
Section titled "centerVertically"Gets or sets the value indicating whether the printed pages should be centered vertically. The value indicating whether the printed pages should be centered vertically.
get centerVertically(): boolean
Returns boolean
set centerVertically(a: boolean): void Parameters
- a:
boolean
Returns void
columnsToRepeatAtLeft
Section titled "columnsToRepeatAtLeft"Gets or sets the range of columns which should be printed on every page.
get columnsToRepeatAtLeft(): RepeatTitleRange
Returns RepeatTitleRange
draftQuality
Section titled "draftQuality"Inherited from: PrintOptionsBase
Gets or sets the value indicating whether the printed pages should be printed using draft quality. The value indicating whether the printed pages should be printed using draft quality.
get draftQuality(): boolean
Returns boolean
set draftQuality(a: boolean): void Parameters
- a:
boolean
Returns void
footer
Section titled "footer"Inherited from: PrintOptionsBase
Gets or sets the footer for each page of the printed worksheet.
get footer(): string
Returns string
set footer(a: string): void Parameters
- a:
string
Returns void
footerMargin
Section titled "footerMargin"Inherited from: PrintOptionsBase
Gets or sets the footer margin for each printed page of the worksheet, specified in inches. The footer margin for each printed page of the worksheet, specified in inches.
get footerMargin(): number
Returns number
set footerMargin(a: number): void Parameters
- a:
number
Returns void
header
Section titled "header"Inherited from: PrintOptionsBase
Gets or sets the header for each page of the printed worksheet.
get header(): string
Returns string
set header(a: string): void Parameters
- a:
string
Returns void
headerMargin
Section titled "headerMargin"Inherited from: PrintOptionsBase
Gets or sets the header margin for each printed page of the worksheet, specified in inches. The header margin for each printed page of the worksheet, specified in inches.
get headerMargin(): number
Returns number
set headerMargin(a: number): void Parameters
- a:
number
Returns void
leftMargin
Section titled "leftMargin"Inherited from: PrintOptionsBase
Gets or sets the margin at the left of each printed page of the worksheet, specified in inches. The margin at the left of each printed page of the worksheet, specified in inches.
get leftMargin(): number
Returns number
set leftMargin(a: number): void Parameters
- a:
number
Returns void
maxPagesHorizontally
Section titled "maxPagesHorizontally"Gets or sets the maximum number of pages allowed in the horizontal direction to print the worksheet.
get maxPagesHorizontally(): number
Returns number
set maxPagesHorizontally(a: number): void Parameters
- a:
number
Returns void
maxPagesVertically
Section titled "maxPagesVertically"Gets or sets the maximum number of pages allowed in the vertical direction to print the worksheet.
get maxPagesVertically(): number
Returns number
set maxPagesVertically(a: number): void Parameters
- a:
number
Returns void
numberOfCopies
Section titled "numberOfCopies"Inherited from: PrintOptionsBase
Gets or sets the number of copies to print. The number of copies to print.
get numberOfCopies(): number
Returns number
set numberOfCopies(a: number): void Parameters
- a:
number
Returns void
orientation
Section titled "orientation"Inherited from: PrintOptionsBase
Gets or sets the orientation for each page of the printed worksheet. The orientation for each page of the printed worksheet.
get orientation(): Orientation
Returns Orientation
orientationResolved
Section titled "orientationResolved"Inherited from: PrintOptionsBase
Returns the resolved orientation for each page of the printed worksheet.
get orientationResolved(): Orientation
Returns Orientation
pageNumbering
Section titled "pageNumbering"Inherited from: PrintOptionsBase
Gets or sets the method with which pages are numbered.
get pageNumbering(): PageNumbering
Returns PageNumbering
pageOrder
Section titled "pageOrder"Gets or sets the order in which to print pages for multiple page worksheets. The order in which to print pages for multiple page worksheets.
get pageOrder(): PageOrder
Returns PageOrder
paperSize
Section titled "paperSize"Inherited from: PrintOptionsBase
Gets or sets the paper size for each printed page of the worksheet. The paper size for each printed page of the worksheet.
get paperSize(): PaperSize
Returns PaperSize
printErrors
Section titled "printErrors"Inherited from: PrintOptionsBase
Gets or sets the way error values of cells are printed.
get printErrors(): PrintErrors
Returns PrintErrors
printGridlines
Section titled "printGridlines"Gets or sets the value which indicates whether to print the worksheet gridlines. The value which indicates whether to print the worksheet gridlines.
get printGridlines(): boolean
Returns boolean
set printGridlines(a: boolean): void Parameters
- a:
boolean
Returns void
printInBlackAndWhite
Section titled "printInBlackAndWhite"Inherited from: PrintOptionsBase
Gets or sets the value indicating whether the worksheet should be printed in black and white. The value indicating whether the worksheet should be printed in black and white.
get printInBlackAndWhite(): boolean
Returns boolean
set printInBlackAndWhite(a: boolean): void Parameters
- a:
boolean
Returns void
printNotes
Section titled "printNotes"Inherited from: PrintOptionsBase
printRowAndColumnHeaders
Section titled "printRowAndColumnHeaders"Gets or sets the value indicating whether to print row and column headers.
get printRowAndColumnHeaders(): boolean
Returns boolean
set printRowAndColumnHeaders(a: boolean): void Parameters
- a:
boolean
Returns void
resolution
Section titled "resolution"Inherited from: PrintOptionsBase
Gets or sets the horizontal print resolution in DPI. The horizontal print resolution in DPI.
get resolution(): number
Returns number
set resolution(a: number): void Parameters
- a:
number
Returns void
rightMargin
Section titled "rightMargin"Inherited from: PrintOptionsBase
Gets or sets the margin at the right of each printed page of the worksheet, specified in inches. The margin at the right of each printed page of the worksheet, specified in inches.
get rightMargin(): number
Returns number
set rightMargin(a: number): void Parameters
- a:
number
Returns void
rowsToRepeatAtTop
Section titled "rowsToRepeatAtTop"Gets or sets the range of rows which should be printed on every page.
get rowsToRepeatAtTop(): RepeatTitleRange
Returns RepeatTitleRange
scaleHeadersAndFootersWithDocument
Section titled "scaleHeadersAndFootersWithDocument"Inherited from: PrintOptionsBase
Gets or sets the value indicating whether to scale the headers and footers with the document scaling.
get scaleHeadersAndFootersWithDocument(): boolean
Returns boolean
set scaleHeadersAndFootersWithDocument(a: boolean): void Parameters
- a:
boolean
Returns void
scalingFactor
Section titled "scalingFactor"Gets or sets the scaling factor to use when printing the worksheet.
get scalingFactor(): number
Returns number
set scalingFactor(a: number): void Parameters
- a:
number
Returns void
scalingType
Section titled "scalingType"Gets or sets the method for scaling the worksheet when it is printed.
get scalingType(): ScalingType
Returns ScalingType
startPageNumber
Section titled "startPageNumber"Inherited from: PrintOptionsBase
Gets or sets the page number for the first printed page of the worksheet.
get startPageNumber(): number
Returns number
set startPageNumber(a: number): void Parameters
- a:
number
Returns void
topMargin
Section titled "topMargin"Inherited from: PrintOptionsBase
Gets or sets the margin at the top of each printed page of the worksheet, specified in inches. The margin at the top of each printed page of the worksheet, specified in inches.
get topMargin(): number
Returns number
set topMargin(a: number): void Parameters
- a:
number
Returns void
verticalResolution
Section titled "verticalResolution"Inherited from: PrintOptionsBase
Gets or sets the vertical print resolution in DPI. The vertical print resolution in DPI.
get verticalResolution(): number
Returns number
set verticalResolution(a: number): void Parameters
- a:
number
Returns void
Methods
Section titled "Methods"clearPageBreaks
Section titled "clearPageBreaks"Clears all page breaks from the [[PrintOptions]].
clearPageBreaks(): void Returns void
horizontalPageBreaks
Section titled "horizontalPageBreaks"Gets the page break at the specified index.
horizontalPageBreaks(index: number): HorizontalPageBreak Parameters
- index:
numberThe index of the page break to get.
Returns HorizontalPageBreak
insertPageBreak
Section titled "insertPageBreak"Inserts a horizontal and/or vertical page break before the specified cell.
insertPageBreak(cell: WorksheetCell): void Parameters
- cell:
WorksheetCellThe cell at which to insert the page break(s).
Returns void
printAreas
Section titled "printAreas"Gets the print area at the specified index.
printAreas(index: number): WorksheetRegion Parameters
- index:
numberThe index of the print area to get.
Returns WorksheetRegion
reset
Section titled "reset"Resets the print options to their default settings.
reset(): void Returns void
verticalPageBreaks
Section titled "verticalPageBreaks"Gets the page break at the specified index.
verticalPageBreaks(index: number): VerticalPageBreak Parameters
- index:
numberThe index of the page break to get.