preview

edited January 2014 in FastReport 4.0
In a MDI application, I need to set PreviewOptions.MDIchild:= true and PreviewOptions.Modal :=false in a child report form.
The click event of Button1 on the child report form will fire frxReport1.Showreport.

So, click Button1 and preview window show without any problem.
When I close the child report form, related preview window is also closed.

However, click Button1 twice, and close child report form, the preview window still exist on screen.

Is it by design or a bug?

A demo project is attached.

I am using Delphi XE professional with Fast Report version 4.15

Regards.
Norman.

Comments

  • gpigpi
    edited 9:00AM
    Try to close frxReport1.PreviewForm if frxReport1.PreviewForm <> nil before frxReport1.ShowReport;

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.