Page Counting Issue
Hi,
I am having an issue where I have the following code which is used to
display the page count at the top of our own preview form:
IntToStr(ppViewer.AbsolutePageNo) + ' of ' +
IntToStr(ppViewer.ScreenDevice.AbsolutePageCount);
This worked correctly when the preview form only displays a single
page at a time but when we change it to continuous:
ppViewer.SinglePageOnly := false;
ppViewer.Pagedisplay := pdContinuous;
AbsolutePageCount always returns zero.
How can I get the correct number of pages when using a continous
paged display?
David.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
I am having an issue where I have the following code which is used to
display the page count at the top of our own preview form:
IntToStr(ppViewer.AbsolutePageNo) + ' of ' +
IntToStr(ppViewer.ScreenDevice.AbsolutePageCount);
This worked correctly when the preview form only displays a single
page at a time but when we change it to continuous:
ppViewer.SinglePageOnly := false;
ppViewer.Pagedisplay := pdContinuous;
AbsolutePageCount always returns zero.
How can I get the correct number of pages when using a continous
paged display?
David.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
This discussion has been closed.
Comments
Which version of ReportBuilder and Delphi are you using?
Rather than using the Viewer page properties, try using
TppReport.AbsolutePageNo and TppReport.AbsolutePageCount.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com