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 

when a report has been completely generate?

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





PostPosted: Thu Sep 11, 2003 6:51 pm    Post subject: when a report has been completely generate? Reply with quote



I've added some code in the events AfterPrint of the detail band in order
to export the data that are printed (don't like the way the built-in
components for exporting work).
Then I call preview method but I don't know when it's finished!
Not in the AfterPreview event that occours when the user closes the preview
windows.
I don't know when the report has finished to process the AfterPrint events!

Thanks for your help


Back to top
Timo
Guest





PostPosted: Fri Sep 12, 2003 7:29 am    Post subject: Re: when a report has been completely generate? Reply with quote



Hi,

Quote:
...
Then I call preview method but I don't know when it's finished!
Not in the AfterPreview event that occours when the user closes
the preview windows.
I don't know when the report has finished to process the
AfterPrint events!

you could set a flag in the report's summary band's AfterPrint event (add
an empty summary band if your report doesn't have one) and then check for
that flag in the OnEndPage event. If the summary band has been printed and
the page is at its end (i.e. page footers have also been printed), the
report is finished.
Not a very nice solution, but it should work.

Regard, Timo


--
Timo.Hartmann at http://www.thsd.de
Home of QR PowerPack and QRDesign (QuickReport end user report editor)

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

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.