Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export FASTREPORT print as PDF

Is there anyone knows how to get PDF prints from "fast report"? (.NET)

report1.Export(frxPDFExport1); 

that line doesn't work, ?

like image 937
blackman Avatar asked Jun 03 '13 11:06

blackman


1 Answers

Hi here is the answer how to export to pdf.

using FastReport.Export.Pdf;

 report1.Prepare();
              PDFExport pdf = new PDFExport();
              report1.Export(pdf, "c:\\ExportedPDF.pdf");

That's it :) to export to other formats you need to create appropriate ExportBase object. Also if your report have forms - then user must click ok first and only then it will create pdf because of Prepare method.

like image 120
Tommix Avatar answered Oct 08 '22 18:10

Tommix