Keep preview of the report after print / export
Hi,
Maybe this is a simple question but I didn't find it yet. I have my own preview window with frxPreview.
After displaying the report with PrepareReport / ShowPreparedReport , the user can actually print or export it or both.
But when I choose e.g. print, the preview window gets reset and is empty. I tried to do ShowPreparedReport again but apparently it's
really reset during the print/export. I don't want to redo the preparereport / showreport cycle ( performance )
I didn't find any property on either the report or preview to make this happen ( It seems that in the default preview window
this is working like that so it must be possible )
regards
Maybe this is a simple question but I didn't find it yet. I have my own preview window with frxPreview.
After displaying the report with PrepareReport / ShowPreparedReport , the user can actually print or export it or both.
But when I choose e.g. print, the preview window gets reset and is empty. I tried to do ShowPreparedReport again but apparently it's
really reset during the print/export. I don't want to redo the preparereport / showreport cycle ( performance )
I didn't find any property on either the report or preview to make this happen ( It seems that in the default preview window
this is working like that so it must be possible )
regards
Comments
The 'trick' ( or design ) is to use the print / export functions on the preview component. Not on the report component.
Another thing I noticed is that that if you assign a preview component, then the report.preparereport already shows the content in the preview and
no extra report.showpreparedreport is required.
Thanks for your responses
regards
PS Hope I never have to do a report migration again....Fast reports : please stay alive
So that doesn't make a difference.
Using frxpreview.print is what is required
Thanks.
Question: The report is lost from preview (TfrxPreview) after exporting the report frxReport1.Export(frxPDFExport1). What should be done ?
Answer:
Do this:
Or this :