Open PDF File in New Tab in UI5 Applicaiton on Internet Explorer
I have a requirement where i need to display PDF file in a new tab.
I have data in base 64 that i am getting from Backend into the Gateway server.( i can get in xstring format as well)
Now when i try to use-
1. window.open("data:application/pdf," + escape(a) , "_blank");
a will have the pdf data
This works well in Chrome but fails in Internet Explorer.
What i need exactly is like webdynpro Framework where by using below we used to get pdf loaded in New tab which will have native PDF print and download options:-
* EXPORTING i_filename = 'File_pdf
EXPORTING i_filename = lv_file_name
i_content = lv_content
i_mime_type = 'application/pdf' "
i_in_new_window = abap_true
i_inplace = abap_true ).
Please let me know Guys how to achieve this functionality.I need solution that works in IE11.
Thanks in advance,