Hi,
I have used below javascript code to open the jasper report which prints the report name on new tab. It works perfect apart from when I try to download the report. How can we do this?
I have seen below links but doesn't find anything which works for me.
https://stackoverflow.com/questions/4351273/chrome-error-on-downloading-file-via-iframe
https://stackoverflow.com/questions/45947157/google-chrome-pdf-download-in-an-iframe-not-working?rq=1
var newWindow = window.open(); var strData=0;
newWindow.document.write('<iframe frameborder="1" width="1400" height="1000" src="&REPORT_URL_JASPER.?_repName=JREP_OPR_048&_repFormat=pdf&_dataSource=&REP_DATA_SOURCE.&_repLocale= &REP_LOCAL_JASPER.&P_FILE_CODE=&P832_FILE_CODE.&P_VERSION_NO=01&P_TYPE=ALL&P_SBU_CODE=&P0_SBU_CODE."></iframe> ');
newWindow.document.title = "Address List";
Any suggestions would be really appreciated.
Thank You in advance!