问题
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