Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Download icon not working on chrome while using Iframe.

Udit NagpalJan 25 2018 — edited Jan 29 2018

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!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2018
Added on Jan 25 2018
42 comments
3,766 views