How to create a pdf file when loading the Report.

mohanarajmohanaraj 600001
edited 9:01AM 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 9:01AM
    Hello,

    Please show me the full code of your WebReport_StartReport event.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.