Help - Search - Members - Calendar
Full Version: Conflict with TOpenDialog & FastReport
Fast Reports forum > Fast Reports Products > FastReport 3.0
runspect
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.

ohmy.gif ohmy.gif
MrSpock
Hello runspect,

that sounds strange. I just tried the following code:

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.
runspect
I use Delphi 7.
gordk
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.
MrSpock
Hello runspect,

can you post your code? Maybe we then can find a reason for the problem.
runspect
It's a mystery, also after exporting to PDF, RTF, etc in preview window (that shows a TSaveDialog), Fastreport crashes. blink.gif

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

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

Thank you. wink.gif
MrSpock
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.
runspect
Finally, I solved it. It was caused by error in my code biggrin.gif
walter
QUOTE(runspect @ Oct 12 2006, 08:57 AM) *
Finally, I solved it. It was caused by error in my code biggrin.gif

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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.