Is report prepared?
Hello,
In my delphi code, I'm printing a report by using the methode "Tfxreport.print"
Sometimes, this report is allready prepared, because one has opend it with preview.
After he decided to close the preview, he want's to print it by using the above mentioned methode.
In this case I wouldn't have to prepare the report again.
I programmed the Event TfxReport.OnReportPrint. There, I do the preparation.
So, the printer options dialog is opened and if user confirms with OK, the preparation should be executed.
I tried it with TfxReport.Engine.TotalPages > 0. This didn't work, because it is 0
Has there someone an idea on hwo to do this ?
Is it good practice, to use that event handler or do I have a better way?
In my delphi code, I'm printing a report by using the methode "Tfxreport.print"
Sometimes, this report is allready prepared, because one has opend it with preview.
After he decided to close the preview, he want's to print it by using the above mentioned methode.
In this case I wouldn't have to prepare the report again.
I programmed the Event TfxReport.OnReportPrint. There, I do the preparation.
So, the printer options dialog is opened and if user confirms with OK, the preparation should be executed.
I tried it with TfxReport.Engine.TotalPages > 0. This didn't work, because it is 0
Has there someone an idea on hwo to do this ?
Is it good practice, to use that event handler or do I have a better way?
Comments