alanjuden / MvcReportViewer

Custom Report Viewer control to replace MS Report Viewer on MVC projects (also works on .NET Core as a Report Viewer).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write a ssrs report automatically to PDF

achester75 opened this issue · comments

I've used Alan Judens code to view an ssrs report in my web app. What I would like to do is from a button press run this report an save to pdf in a specific location without having to preview then selecting export. Any help would be appreciated.

Thanks

@achester75, I have done something similar but streamed the file out to the user instead of placing it in a specific location somewhere.

If you call into the /Report/ExportReport/?reportPath=path%20to%20your%20report&format=pdf then it will stream down to the end user.

The only other thing you'll need to deal with is if you need to pass a report parameter you'd just tack it onto the end of your url (or pass it into a POST).