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

Report page numbering

Hi

How can I give Qick report page no as 1 of 10 , 2 of 10 etc...

can any one suggest me


Regards
Pandian
0
Pandian012000
Asked:
Pandian012000
  • 2
1 Solution
 
ZifNabCommented:
to get the total amount of pages, you first have to prepare the report (thus this results in 2x for creating the report!)

QuickRep1.Prepare;
TotalPages := QuickRep1.QRPrnter.PageCount;
{or? TotalPages := QuickRep1.QRPrnter.PageNumber}
QuickRep1.QRPrinter.Free;
QuickRep1.QRPrinter := nil;

This is the only way to get the total amount of pages, however it can be that in certain circumstances the count can be wrong (1 count less)

for the pagenumber : drop a TQRSysData component on the form and set data property to 'qrsPageNumber'

Regards, Zif.
0
 
ZifNabCommented:
was meant as an answer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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