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

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