• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 707
  • Last Modified:

How i can print the number of pages on Quick Report?

HI,
Can someone say me or send sample source about this - print of number of pages like this

page 1 from 45

How i get page count of report created with Quick Report?

Thanks for any help

Best regards
0
darkloser
Asked:
darkloser
1 Solution
 
marcoszorrillaCommented:
You must do a prepare before  and then store the value in a variable.
var
nPages:Integer;

Application.CreateForm(TfrLstFichas, frLstFichas);
frlstfichas.ListaFichas.Prepare;
nPages:=frlstfichas.Listafichas.qrprinter.PageCount;

Now you put a Qrlabel near the Actual Page and do something like that:
QrLabel1.Caption ='of '+IntTostr(nPages);

frlstFichas.ListaFichas.Print;

Best Regards.
Marcos.
0
 
VSFCommented:
BRAZIL 5 times WorldCup Champion!

Congratulations too to all Brazilian Experts and those that beleived we would be world's number one (one more time).

Victory Fernandes, a proud Brazilian!
www.victory.hpg.com.br
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now