Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Report page numbering

Posted on 2000-02-25
2
Medium Priority
?
224 Views
Last Modified: 2010-04-04
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
Comment
Question by:Pandian012000
  • 2
2 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 2557589
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
 
LVL 8

Accepted Solution

by:
ZifNab earned 30 total points
ID: 2557599
was meant as an answer
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question