Problem printing from preview

Erik van der GaagErik van der Gaag New Zealand
edited December 2007 in FastReport 4.0
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:
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:

ReportProbSS.png

Any help on this matter would be greatly appreciated.

Regards,
Erik.

Comments

  • Erik van der GaagErik van der Gaag New Zealand
    edited 8:32PM
    For those who come accross the same problem. ? It is resovled by doing this:

    frxPreview.Lock;
    frxPreview.PreviewPages.Print;
    frxPreview.UnLock;

Leave a Comment