Export C# reportviewer control programmatically

Grant picture Grant · Jul 6, 2009 · Viewed 39.1k times · Source

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.

Answer

Mike Chaliy picture Mike Chaliy · Jul 6, 2009

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