FastReport 3 and PDF
I need to export the report with FastReport 3 (v3.19) to the pdf file. I do not want make this from the window of the viewing of the report. I must make this in code without the interference of the user. Unfortunately during the export appears the error Access Violation, and created file pdf is broken-down.
It I switch on the dialog: frxPDFExport.ShowDialog:=True (the rest of the code is the same) everything is ok. What do I make badly?
Here is the fragment of my code :
...
frxReport3.LoadFromFile('c:\Raport.fr3');
frxReport3.PrepareReport();
frxPDFExport.ShowDialog:=False;
frxPDFExport.FileName:='c:\XYZ.pdf';
frxReport3.Export(frxPDFExport);
...
Best regards,
Daniel
It I switch on the dialog: frxPDFExport.ShowDialog:=True (the rest of the code is the same) everything is ok. What do I make badly?
Here is the fragment of my code :
...
frxReport3.LoadFromFile('c:\Raport.fr3');
frxReport3.PrepareReport();
frxPDFExport.ShowDialog:=False;
frxPDFExport.FileName:='c:\XYZ.pdf';
frxReport3.Export(frxPDFExport);
...
Best regards,
Daniel
Comments
frxReport1.PrepareReport();
frxPDFExport1.ShowDialog:= False;
frxPDFExport1.FileName:= 'c:\test.pdf';
frxReport1.Export(frxPDFExport1);
Everything is ok. I use 3.19.26 Version.
FYI, Current fixed related to PDF in version 3.19.26
- fixed bug with frames in PDF export
- fixed ParagraphGap in PDF export
+ added ParagraphGap support in PDF export
+ enhanced speed and reduced output file size of PDF export
+ added pbExportQuick item in TfrxPreviewButtons set
(PDF and E-mail export buttons in Preview)
- fixed bug in PDF export with zero width/height of bitmap
- fixed PDF export (font color clNone looks as clBlack)