I just worked with ASP.NET, and the ReportViewer object. I just wish there was a way to get the PDF rendered to disk without showing on screen. I'm still working with it, but I'm not sure about that as a solution yet.
How to create PDF in SSRS without clicking the EXport button
I wrote a lot of standard SSRS reports, by using VS 2019, and deploying to an SSRS report server. When I design, I'm not connected to the report server.
I would like to write an SSRS Report that can produce a formatted report, and writes that to a PDF file instead of to a ReportViewer. In other words, how can I export to PDF without ever clicking the Export button?
I know a tiny bit about "ReportExecutionService" but what I have doesn't even compile. Is there a tutorial, or a discussion that can get me moving from scratch?
(Note: I have PDFSharp, but I can't seem to figure out how to render the SSRS report to a PDF file instead of to stdout.)
SQL Server Reporting Services
2 answers
Sort by: Most helpful
-
-
Anonymous
2023-06-16T01:34:00.1533333+00:00 Hi @Coreysan
What about exporting reports using URL access? I don't know if this meets your requirements. If you have deployed the report, you can use the URL to specify the format of the rendered report. HTML4.0 and HTM5 formats (rendering extensions) will be rendered in the browser. For other formats, the browser will prompt to save the report output to a local file.
For more details, you can refer to this link: https://learn.microsoft.com/en-us/sql/reporting-services/export-a-report-using-url-access?view=sql-server-ver16.
Best regards,
Aniya