Page Counting Issue

edited July 2016 in General
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

Comments

  • edited July 2016
    Hi David,

    Which version of ReportBuilder and Delphi are you using?

    Rather than using the Viewer page properties, try using
    TppReport.AbsolutePageNo and TppReport.AbsolutePageCount.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.