Application hanging after designer call

marc59marc59 LILLE (FRANCE)
edited 4:01PM in FastReport 3.0
I have made an application that offer report designing tool. For this, Fastreport is very extra.

But, when a report has been generated with Showreport method, if I call DesignReport methode, I cannot re-use Showreport method because application hangs. Same problem if I use preview of designer... ;)

Please help me !

Thanks

Comments

  • marc59marc59 LILLE (FRANCE)
    edited 4:01PM
    With use of PrepareReport and ShowPreparedReport it works now fine :

    I use

    <span style='font-family:Courier'>frxReport.PrepareReport;
    frxReport.ShowPreparedReport;
    ...
    frxReport.DesigneReport;
    ...
    frxReport.PrepareReport;
    frxReport.ShowPreparedReport;</span>

    instead of

    <span style='font-family:Courier'>frxReport.ShowReport;
    ...
    frxReport.DesigneReport;
    ...
    frxReport.ShowReport;</span>

    and i open/close manually datasource instead of let Fastreport made this itself.

  • edited 4:01PM
    FastReport demo has two buttons: one with ShowReport, another with DesignReport. I don't see any hangs when pressing these buttons one after other.
  • marc59marc59 LILLE (FRANCE)
    edited December 2004
    I think that in this demo, the report is reloaded when you click buttons.

    In my application, the user can see a first preview of a standard report and if he want, he can update it by clicking a button. But, modifications are applyed on this live report without reload.

    My report has also a complex data access with query and a lot of master/detail datasources.

    I can try to reproduce this with a lite sample... But at this moment, I go to my bed, it is 1:10 AM in France.
  • edited 4:01PM
    No, it is not reloaded, look at demo sources.

    procedure TForm1.DesignBClick(Sender: TObject);
    begin
    frxReport1.DesignReport;
    end;

    procedure TForm1.PreviewBClick(Sender: TObject);
    begin
    frxReport1.ShowReport;
    end;

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.