Parameters
- rng
- Range of cells to print.
- scaleMode
- How to scale the grid to fit on the pages.
- pageSize
- Size of the pages in pixels.
- maxPages
- Maximum number of pages to return.
Return Value
A list with elements that correspond to the pages.
The elements returned in the list represent portions of the grid that correspond to individual pages in a document.
The scaleMode and pageSize parameters define how many pages are returned and the data contained in each page.
The elements returned in the list may be rendered directly into the document (by assigning them to the PageVisual property of the PrintPage event parameter), or they may be combined with other elements in a template to provide a letterhead, headers, footers, and additional document content.