How perform SSRS URL action without triggering Print Dialog?

大憨熊 提交于 2019-12-24 20:38:38

问题


I have several SQL Server Reporting Services reports with text boxes having URL actions that look like this:

="javascript:void(window.open('http://...some-web-site...="
+ Fields!someField.Value
+ "&lang=eng&tab=reg','_blank'))"

The URL actions work, but immediately after the web page opens, the browser's Print Dialog opens with a print-to-pdf type option selected. The user then has to close the Print Dialog in order to view the web page. How can I stop the browser's Print Dialog from opening when the URL action is performed?


回答1:


Try testing the JavaScript with just "google.com" and see if the print dialog opens.

="javascript:void(window.open('http://google.com" + "','_blank'))"

Does the print dialog open for other urls or just the one you're testing? Have you testing this on other machines?



来源:https://stackoverflow.com/questions/59231683/how-perform-ssrs-url-action-without-triggering-print-dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!