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 10:01PM
    For those who come accross the same problem. ? It is resovled by doing this:

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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.