Adds a page break before the top row of the range. A break already there is returned.
Optionaloptions: ITransaction.OperationOptionsAdds a page break before the left column of the range. A break already there is returned.
Optionaloptions: ITransaction.OperationOptionsThe headers and footers.
The manual page breaks before rows, in order.
The paper size, or null when the sheet uses a size that has no name here.
Files can name sizes beyond Office Scripts' list (printer-specific sizes, numbered 256 and up); getPaperSizeCode returns the size in every case.
The paper size as the number the file stores it by: 1 letter, 9 A4, and so on. This is
also the value of VBA's PageSetup.PaperSize.
The ranges printed, or null when the whole used range prints.
Office Scripts returns undefined here; this returns null.
Kept as the sheet-scoped name _xlnm.Print_Area (see IWorksheet.getNames), so it follows
rows and columns inserted and deleted the way any name does.
Whether the gridlines are printed.
Independent of whether they are shown on screen (IWorksheetView.setShowRowGridlines).
The order pages are numbered and printed in when the sheet spans pages both ways.
The columns repeated at the left of every page, or null when there are none.
The rows repeated at the top of every page, or null when there are none.
Office Scripts returns undefined here; this returns null.
Kept, with getPrintTitleColumns, as the sheet-scoped name _xlnm.Print_Titles.
How the sheet is scaled: a percentage, or the number of pages to fit it to.
Removes every page break before a row.
Optionaloptions: ITransaction.OperationOptionsRemoves every page break before a column.
Optionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsSets the number printed on the first page; "" or null numbers the pages automatically.
Optionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsSets the paper size, by name or by the number the file stores it by.
Optionaloptions: ITransaction.OperationOptionsSets the ranges printed. null or "" clears the print area.
Optionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsSets several margins at once, in the unit given. Margins not given stay as they are.
Optionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsSets the columns repeated at the left of every page, as entire columns ('A:B'). null or
"" clears them.
Optionaloptions: ITransaction.OperationOptionsSets the rows repeated at the top of every page, as entire rows ('1:2'). null or ""
clears them.
Optionaloptions: ITransaction.OperationOptionsOptionaloptions: ITransaction.OperationOptionsScales the sheet to a percentage, or fits it to a number of pages.
Optionaloptions: ITransaction.OperationOptions
How a sheet is laid out on printed pages: paper, orientation, scale, margins, what is printed besides the cells, the headers and footers, the print area and the rows and columns repeated on every page.
Remarks
Shaped after Office Scripts'
PageLayout, reached the same way (IWorksheet.getPageLayout). The manual page breaks are here too, with the rest of what decides the pages. Office Scripts has them on the worksheet, and so does IWorksheet: IWorksheet.getHorizontalPageBreaks and the others are the same breaks.Setters return the layout rather than
void, so calls can be chained.SheetXL does not print; these settings are kept with the sheet and written to the file.