Page Counting Issue

edited July 2016 in General

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 ' +

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?


This email has been checked for viruses by Avast antivirus software.


  • 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
This discussion has been closed.