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 8:02PM
    I use Delphi 7.
  • gordkgordk St.Catherines On. Canada.
    edited 8:02PM
    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 8:02PM
    Hello runspect,

    can you post your code? Maybe we then can find a reason for the problem.
  • edited 8:02PM
    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 8:02PM
    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 8:02PM
    Finally, I solved it. It was caused by error in my code ;)
  • edited 8:02PM
    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