Hello Experts,
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:-
cl_wd_runtime_services=>attach_file_to_response(
* 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,
Sujit