BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting total page count within a QReport. Possible or just

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Miha P.
Guest





PostPosted: Tue Feb 27, 2007 5:46 am    Post subject: Getting total page count within a QReport. Possible or just Reply with quote



Hi there y'all! Wink I know this must have been asked like a million times
before but I can't find any such replies in this thread. Also, it's been a
while since I last used QuickReport components so here it goes again:

Is it possible to display/print say a footer label that would be formatted
like "[Current Page]/[Total Pages Count]" or should I do this within code,
like:

Report.Prepare;
Report.QRExpr1.Expression:= 'PAGENUMBER + ''/' + Report.QRPrinter.PageCount
+ '''';
Report.Preview;

....or setting a global variable within QuickRepEndPage event?

I know there's a trick to it I just can't remember what it was...

Thanks for your reply in advance and best to all,

MyK

Back to top
Miha P.
Guest





PostPosted: Tue Feb 27, 2007 6:13 am    Post subject: Re: Getting total page count within a QReport. Possible or j Reply with quote



OK, the first one seems to wok OK. Thanks anyway!

"Miha P." <Howdee (AT) Email (DOT) si> wrote in message
news:45e37133 (AT) newsgroups (DOT) borland.com...
Quote:
Hi there y'all! Wink I know this must have been asked like a million times
before but I can't find any such replies in this thread. Also, it's been a
while since I last used QuickReport components so here it goes again:

Is it possible to display/print say a footer label that would be formatted
like "[Current Page]/[Total Pages Count]" or should I do this within code,
like:

Report.Prepare;
Report.QRExpr1.Expression:= 'PAGENUMBER + ''/' +
Report.QRPrinter.PageCount + '''';
Report.Preview;

...or setting a global variable within QuickRepEndPage event?

I know there's a trick to it I just can't remember what it was...

Thanks for your reply in advance and best to all,

MyK
Back to top
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
 


Powered by phpBB © 2001, 2006 phpBB Group
.