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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Export PDF SfReportViewer with code

Thread ID:





123364 Mar 10,2016 03:32 PM UTC Mar 11,2016 09:15 AM UTC WinRT 3
Tags: SfReportViewer
Ryan Nebel
Asked On March 10, 2016 03:32 PM UTC

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.

Ryan Nebel
Replied On 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.

Ryan Nebel
Replied On 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.

Mariya Joseph M [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon