Hi! How can i get to know that last page of report will be printed? What is the PageRequest object passed as parameter in OnPageRequest event and how can i use properties of it?
The OnPageRequest returns the TppPageRequest object which in turn contains the enumerated type TppPageSettingType, and the integer number of the page requested. For instance if you are in the Previewer and you select to go to the last page, the TppPageRequest.PageSetting will be set to psLastPage. For an example of how this works, do a search on psLastPage in the ppViewer.pas file.
Comments
The OnPageRequest returns the TppPageRequest object which in turn contains
the enumerated type TppPageSettingType, and the integer number of the page
requested. For instance if you are in the Previewer and you select to go to
the last page, the TppPageRequest.PageSetting will be set to psLastPage.
For an example of how this works, do a search on psLastPage in the
ppViewer.pas file.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com