alanjuden / MvcReportViewer

Custom Report Viewer control to replace MS Report Viewer on MVC projects (also works on .NET Core as a Report Viewer).
MIT License
173 stars 109 forks source link

Specify filename for exports #66

Open mitzoe opened 6 years ago

mitzoe commented 6 years ago

Is there any way to allow for specifying the exported filename? Ideally through code (client or backend) or by prompting the user?

Many thanks.

alanjuden commented 6 years ago

@mitzoe, you just thinking that when you setup your controller action you want to be able to specify the filename or are you wanting to include a timestamp into the filename or what? I'm seeing a couple of different alternatives. One where you could just pass the filename from the ReportViewer.cshtml when exportReport is called and the other option would be like I suggested as setting a ExportFileName on the model that you setup. What's your thoughts?