We have created a report and are using the “Export” feature provided by the Report viewer. All of the options are working satisfactorily except for the CSV option. The CSV option is working as documented, but we really want to apply the “NoHeader” and “NoStaticText” options that have been documented. The problem is that these go into the application config file. Our report generator is part of an MMC snapin. We do not have a configuration file to add these customizations to. All the documentation I have seen so far points to ReportProcessor.RenderReport() to programmatically modify the export behavior. The examples around using this are not very helpful. I do not see how to tie this into the “Export” button on the Report viewer. I have found no events that are generated when a user chooses an export option. I also want to use the provided UI for gathering the destination, and also use the provided “write to file” functionality. The examples of RenderReport all seem to use a default location and provide their own write code.
Is there a way to programmatically set the “NoHeader” and “NoStaticText” parameters for the CSV option without using RenderReport? If the answer is no, can you point me to some documentation/examples of how to use RenderReport when a user selects an export option from the Export button?