We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Starting in 2019, the Reporting control is no longer included in Essential Studio. If you're experiencing issues with the Syncfusion Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion and appreciate your understanding.

Export PDF SfReportViewer with code

Is there a way to have the report viewer export a PDF with code?

I am wanting to generate reports and then display them as a PDF, without the need to have the user click the export button and select the format then select a location and name.

3 Replies

RN Ryan Nebel March 10, 2016 08:45 PM UTC

I was able to find a KB on this where i use a report writer. I am able to export the PDF to a file in the cod behind, but now i cant get the report to load the parameters like i would in report viewer.

RN Ryan Nebel March 10, 2016 08:53 PM UTC

I was able to figure it out, you can add data sources before loading the report but you must set the parameters after loading the report.

MJ Mariya Joseph M Syncfusion Team March 11, 2016 09:15 AM UTC

Hi Ryan,

We have prepared a sample to export report as pdf and to set parameter, datasource  using ReportWriter. Please find the sample from the below location.

Mariya Joseph M.

Live Chat Icon For mobile
Up arrow icon