Class which exposes the various print options available for a worksheet which can be saved with both a worksheet and a custom view.

PrintOptions

new PrintOptions(a: Worksheet, b: boolean): PrintOptions

Returns PrintOptions

$t: Type

Inherited from: PrintOptionsBase

alignHeadersAndFootersWithMargins: boolean

Inherited from: PrintOptionsBase

bottomMargin: number
centerHorizontally: boolean
centerVertically: boolean
columnsToRepeatAtLeft: RepeatTitleRange

Inherited from: PrintOptionsBase

draftQuality: boolean

Inherited from: PrintOptionsBase

footer: string

Inherited from: PrintOptionsBase

footerMargin: number

Inherited from: PrintOptionsBase

header: string

Inherited from: PrintOptionsBase

headerMargin: number

Inherited from: PrintOptionsBase

leftMargin: number
maxPagesHorizontally: number
maxPagesVertically: number

Inherited from: PrintOptionsBase

numberOfCopies: number

Inherited from: PrintOptionsBase

orientation: Orientation

Inherited from: PrintOptionsBase

pageNumbering: PageNumbering
pageOrder: PageOrder

Inherited from: PrintOptionsBase

paperSize: PaperSize

Inherited from: PrintOptionsBase

printErrors: PrintErrors
printGridlines: boolean

Inherited from: PrintOptionsBase

printInBlackAndWhite: boolean

Inherited from: PrintOptionsBase

printNotes: PrintNotes
printRowAndColumnHeaders: boolean

Inherited from: PrintOptionsBase

resolution: number

Inherited from: PrintOptionsBase

rightMargin: number
rowsToRepeatAtTop: RepeatTitleRange

Inherited from: PrintOptionsBase

scaleHeadersAndFootersWithDocument: boolean
scalingFactor: number
scalingType: ScalingType

Inherited from: PrintOptionsBase

startPageNumber: number

Inherited from: PrintOptionsBase

topMargin: number

Inherited from: PrintOptionsBase

verticalResolution: number

Inherited from: PrintOptionsBase

Returns the resolved orientation for each page of the printed worksheet.

get orientationResolved(): Orientation

Returns Orientation

Clears all page breaks from the [[PrintOptions]].

clearPageBreaks(): void

Returns void

Gets the page break at the specified index.

horizontalPageBreaks(index: number): HorizontalPageBreak

Parameters

  • index: number

    The index of the page break to get.

Returns HorizontalPageBreak

Inserts a horizontal and/or vertical page break before the specified cell.

insertPageBreak(cell: WorksheetCell): void

Parameters

  • cell: WorksheetCell

    The cell at which to insert the page break(s).

Returns void

Gets the print area at the specified index.

printAreas(index: number): WorksheetRegion

Parameters

  • index: number

    The index of the print area to get.

Returns WorksheetRegion

Resets the print options to their default settings.

reset(): void

Returns void

Gets the page break at the specified index.

verticalPageBreaks(index: number): VerticalPageBreak

Parameters

  • index: number

    The index of the page break to get.

Returns VerticalPageBreak