I have a formatted table in ReportViewer. When I want to export to Excel though – I do not want to export the formatted table – instead I want to output the original/raw/unmassaged data table in an excel file.
What’s the best way to intercept the Export to Excel function and output data in a different format?
Put the
ShowExportButtontoFalsein the ReportViewer and add a new button in your page that do the work.Or you can get into the
ReportExportevent, set the Cancel toTrue, and the fire your custom method.