on 06-10-2022 6:22 PM
When using web Dynpro and downloading a PDF file throw Microsoft Edge the file is saving as .TXT. PDF download works fine with Chrome and Firefox. Why does Edge save a PDF as .TXT? Is there a fix for this?
Here is the code:
cl_wd_runtime_services=>attach_file_to_response(
exporting
i_filename = lv_file_name
i_content = ls_anexo-attachment_bin
i_mime_type = 'pdf'
i_in_new_window = abap_false
i_inplace = abap_false ).
cl_wd_runtime_services=>attach_file_to_response(
exporting
i_filename = lv_file_name
i_content = ls_anexo-attachment_bin
i_mime_type = 'application/pdf'
i_in_new_window = abap_false
i_inplace = abap_false ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank a lot for the assistance
The issue may be caused by changing the NWBC engine from Chromium to edge.
When fixing the MIME, we used the central function SDOK_MIMETYPE_GET to get the correct MIMETYPE ('application/pdf) instead of PDF
-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.