Conflict with TOpenDialog & FastReport

On FastReports 3.23.

If I make an OpenDialog.Execute or a SaveDialog.Execute with TOpenDialog & TSaveDialog components, from that moment on FastReport Engine fails.

;) ;)

Comments

  • edited October 2006
    Hello runspect,

    that sounds strange. I just tried the following code:
    procedure TMainForm.Button1Click(Sender: TObject);
    begin
       if OpenDialog1.Execute then
       begin
          ShowMessage(OpenDialog1.FileName);
          frxRepRechnung.ShowReport;
          frxRepRechnung.Export(frxPDFExport1)
       end;
    end;
    

    It works without a problem. I am using FR 3.22 and D2006.
  • edited 1:32PM
    I use Delphi 7.
  • gordkgordk St.Catherines On. Canada.
    edited 1:32PM
    procedure TMainForm.Button1Click(Sender: TObject);
    begin
    if OpenDialog1.Execute then
    begin
    frxreport1.loadfromfile(OpenDialog1.FileName);
    frxreport1.ShowReport;
    end;
    end;
    works fine for me also d7 d10.
  • edited 1:32PM
    Hello runspect,

    can you post your code? Maybe we then can find a reason for the problem.
  • edited 1:32PM
    It's a mystery, also after exporting to PDF, RTF, etc in preview window (that shows a TSaveDialog), Fastreport crashes. ;)

    Your examples work perfectly, so the problem is in my application. Where? I don't know... ;)

    The code is so complicated in order to show it here.

    Thank you. ;)
  • edited 1:32PM
    Hallo runspect,

    just let us know, when you could solve the problem. It might be interesting for us to avoid the same problem in the future.
  • edited 1:32PM
    Finally, I solved it. It was caused by error in my code ;)
  • edited 1:32PM
    runspect wrote: »
    Finally, I solved it. It was caused by error in my code >
    Please, can you let me know the error. I have the same problem but I don't find any kind of error in my code.

    Tks

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.