Export FASTREPORT print as PDF

blackman picture blackman · Jun 3, 2013 · Viewed 7.6k times · Source

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

report1.Export(frxPDFExport1); 

that line doesn't work, ?

Answer

Tommix picture Tommix · Jun 8, 2013

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.