When using the default export buttons within the ReportViewer, is there a way to simply prompt the user to open the exported report? I looked at the ReportExport event, though this fires before the export occurs. The only thing I can think of is to cancel the ReportExport and create my own export functionality, though I hope I do not need to do this. Are there any events that I’m missing that fire after the export occurs?
Share
I found a solution for this. @KreepN, I had seen similar solutions to yours online throughout various discussion boards, however, I’ve found another solution which better suites what I was looking for. This provides all of the default functionality for exporting. Here’s what I did:
First, subscribe to the ReportExport event when form is created.
Here’s my ReportExport event handling method:
The RenderingExtension class doesn’t publicly expose the actual file extensions that are exported, so I created this method:
Lastly, here’s my helper method to prompt the user and open the file if they choose: