Solved

Report page numbering

Posted on 2000-02-25
2
218 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 10 total points
ID: 2557599
was meant as an answer
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

838 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