C# – Export C# reportviewer control programmatically


Does anyone know if you can programmatically save a report shown in a reportviewer control in C#?

When a report is shown there are "Export to…" buttons and I would like to automate the saving to PDF function.

Best Solution

You can do this with ReportViewer Control(with LocalReport.Render Method), check "Email a report" example at the http://www.gotreportviewer.com/