Posted 19 August 2020, 9:44 am EST
I am currently in the process of upgrading to version 14 and we have been using the WebViewer to display an active report in a web form along with an export asp button. There are also textboxes within the report which utilize the hyperlink property to add a reference to a javascript function associated with the page. Both the asp button and textbox hyperlinks worked with the previous version we had been using (v12). Currently the asp button (which is server side) will export the report for us but the webviewer gets wiped because of the post back. The hyperlinks on the text boxes that call the js function had to be modified to include “javascript:” on the front-end, but we are still having issues with the encoding of the single quotes surrounding the values being passed to the function.
I am looking for some guidance on how to produce some event handlers for the webviewer in javascript so that I can both handle click events on the text boxes within the webviewer and use a button (doesn’t have to be an asp button) to export the report to a pdf w/o using the side panel in the viewer.