Problem printing from preview
Erik van der Gaag
New Zealand
Hello,
We have our own custom preview form so that it is consistant with our application, which is an MDI application.
When we have a preview open, and we print from it, the preview then doesn't display the report anymore, or rather, doesn't redraw it.
Here is a few snippets of code we use:
Assigning the Report:
Printing the Report:
Here is a screenshot of what is going wrong:
Any help on this matter would be greatly appreciated.
Regards,
Erik.
We have our own custom preview form so that it is consistant with our application, which is an MDI application.
When we have a preview open, and we print from it, the preview then doesn't display the report anymore, or rather, doesn't redraw it.
Here is a few snippets of code we use:
Assigning the Report:
frxPreview.Report := FfrxReport;
FfrxReport.ShowProgress := True;
FfrxReport.Preview := frxPreview;
FfrxReport.PrepareReport;
FfrxReport.ShowPreparedReport;
Printing the Report:
FfrxReport.PrintOptions.ShowDialog := False;
frxPreview.PreviewPages.Print;
Here is a screenshot of what is going wrong:
Any help on this matter would be greatly appreciated.
Regards,
Erik.
Comments
frxPreview.Lock;
frxPreview.PreviewPages.Print;
frxPreview.UnLock;