Exporting from custom preview form
When I export my report from a custom preview the export works fine, but at the end the preview of the report disappeared.
This code I call from the preview window (an action)
===
oExportfilter := TfrxCustomExportFilter(frxPDFExport1);
oExportFilter.ShowDialog := TRUE;
frxReport.Export(oExportFilter);
or this (another try)
frxPDFExport1.ShowDialog := TRUE;
frxReport.Export(frxPDFExport1);
==
After the export the preview window of the report will be empty.
What did I do wrong so the report disappeared.
regards,
Gebko Hahn
This code I call from the preview window (an action)
===
oExportfilter := TfrxCustomExportFilter(frxPDFExport1);
oExportFilter.ShowDialog := TRUE;
frxReport.Export(oExportFilter);
or this (another try)
frxPDFExport1.ShowDialog := TRUE;
frxReport.Export(frxPDFExport1);
==
After the export the preview window of the report will be empty.
What did I do wrong so the report disappeared.
regards,
Gebko Hahn
Comments
I've found a solution for it.
At first I've had a central reportmodule with a separate previewform. I've moved all the export stuff from the central module to the previewform and now I export from the preview form.
So:
frxPreview.Export(....)
regards,
Gebko
I have the same problem with export and... print methods !
After print or export, custom preview is empty.
It's a very embarrassing problem...
frxrEtat.PrepareReport;
frxrEtat.ShowPreparedReport;
...
frxrEtat.Print
To workaround this bug, I've had a new prepareReport and ShowPreparedReport after printing or exporting, but it's not very cool. User must wait because report is rebuilt !
So the former use of the method was the reason that after a print the report was still in the preview window and after an export it dissapears.
When I use these methods from the TfrxReport component I don't use the preview form and then everything is ok.
But strange is that when you print from the preview window there is no flickering of the window and when you use the export method than there is one (a refresh?).
But it now it works the same as with FR2.54, so the user should not see it.
I can see a flicker due to a refresh too in FR 3.09
Thanks !