endPage
The last page number to render.
Property of
Report
Description
When rendering to a window (the default), only one page, the startPage, is rendered at a time. When rendering to a printer or file, pages are rendered from the startPage to the endPage.
By default, endPage is –1, which means that all the pages in the report are rendered. Set endPage to a number greater than zero to set the last page to render. When and if the report engine gets to that page, it stops after it has finished rendering it.