Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am having an issue rendering an SSRS report to PDF in MS Edge. It presents a new window as desired but instead of opening the SSRS report in PDF, it downloads the file directly and not showing the report.

What I have tried:

string pdfReportURL = reportServer + "/Pages/ReportViewer.aspx?%2fOps%2fCPM%2fCompleted+Flow+Sheet+Activities&PatientID=" + PatientId + "&CalendarDate=" + dateOfServiceString + "&rs:Command=Render&rs:Format=PDF&rs:ClearSession=True";


ScriptManager.RegisterStartupScript(this, this.GetType(), "newWindow", String.Format("window.open('{0}','_blank',resizable=1,scrollbars=1);", pdfReportURL), true);


If this is impossible to fix, how can I open and render SSRS to PDF in another window using IFrame
Posted
Updated 29-Mar-21 1:36am

1 solution

You already posted this at Render and open SSRS report to PDF in another window (instead of downloading)[^]. Please do not repost.
 
Share this answer
 
Comments
Bob Jason Tiamsic 29-Mar-21 7:44am    
Sorry. I got prompted with "Too frequent posting and visited it in New Questions, nothing appeared. So I reposted
Bob Jason Tiamsic 29-Mar-21 7:44am    
I deleted that one already

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900