In ReportViewer using Winforms , when I create the report I only have the option to export to PDF, Excel and Word and I need to add the export option in CSV.
In ReportViewer using Winforms , when I create the report I only have the option to export to PDF, Excel and Word and I need to add the export option in CSV.
private void reportViewer_Load(object sender, EventArgs e) { var fieldInfo = typeof(Microsoft.Reporting.WinForms.RenderingExtension).GetField("m_isVisible", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
foreach (var extension in this.reportViewer.LocalReport.ListRenderingExtensions())
{
if (string.Compare("EXCELOPENXML", extension.Name) == 0)
fieldInfo.SetValue(extension, true);
}}