How to create a pdf file when loading the Report.

mohanarajmohanaraj 600001
edited 2:08AM in FastReport .NET
Dear Alex,

How generate and save the pdf file in the given path while the report loading. I use the below code to export report to pdf file in the reports_StartReport event, This will create the pdf file but not display the report in the page.

Please advice.

FReport.Prepare();
PDFExport export = new PDFExport();

FReport.Export(export, HttpContext.Current.Server.MapPath("result.pdf"));
FReport.Dispose();

Thank you.

Comments

  • edited 2:08AM
    Hello,

    Please show me the full code of your WebReport_StartReport event.

Leave a Comment