We are using a URL to open SSRS reports in a new window (window.open(url)) with url like
http://server/ReportServer?/folder/reportname...etc and include the parameter rs:Format=PDF. How can we avoid the open or save popup and just always open the PDF? In a related question, is
there a way to also send the report directly to the default printer without user intervention? Thanks.
Weather or not the end user is asked to open or save a file is a browser setting the end user is in control of. You can't control it with code.
Printing without user intervention from a web browser is not possible either. If it was there would be millions of malicious sites out there that send an ad to your printer as soon as you visit the site (on accident or not).
Mark all posts that give the desired result the answer. If you only mark the last that gave you clarification because you misread an earlier post others will be confused. Some of us are here to help others and our point to post ratio matters.
Member
361 Points
1581 Posts
PDF open/save prompt
Jan 08, 2016 02:49 PM|dlchase|LINK
We are using a URL to open SSRS reports in a new window (window.open(url)) with url like http://server/ReportServer?/folder/reportname...etc and include the parameter rs:Format=PDF. How can we avoid the open or save popup and just always open the PDF? In a related question, is there a way to also send the report directly to the default printer without user intervention? Thanks.
Contributor
7058 Points
2189 Posts
Re: PDF open/save prompt
Jan 08, 2016 03:38 PM|ryanbesko|LINK
Weather or not the end user is asked to open or save a file is a browser setting the end user is in control of. You can't control it with code.
Printing without user intervention from a web browser is not possible either. If it was there would be millions of malicious sites out there that send an ad to your printer as soon as you visit the site (on accident or not).