Quickreport forum
Go to Quickreport website
Welcome Guest Search | Active Topics | Log In | Register

How to get page count of TQRCompositeReport
#1 Posted : 03 April 2018 19:07:39(UTC)
Rank: Newbie

Groups: Registered
Joined: 19/11/2016(UTC)
Posts: 1
Location: New Zealand

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
QuickReport 5.02 for Delphi 7

I have two reports which I am combining using TQRCompositeReport. I want to print Page X of Y on each page footer.
In a single report I normally use the following:

NumPages := QRPrinter.PageCount;
qrLabelY.Caption := ' of ' + IntToStr(NumPages);

However there appears to be no PageCount property available from TQRCompositeReport.
I have tried preparing both reports first to sum the page count, however occasionally this gives me a total one page more than the actual pages.
Any ideas?

Laurence Bevan
New Zealand
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.019 seconds.