on 01-29-2009 7:20 AM
Dear All,
I have a scenario to upload the screen shot in .Doc format in the database table in webdynpro application and the same senario like i need to download the screenshot in .DOC Format in the System.
Please let me know how can I acheive this task.
Thanks®ards,
Aditya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Try to use thid below code I think it will solve your problem.
Code for File download in action method
DATA lr_conv TYPE REF TO cl_abap_conv_out_ce.
DATA lv_data TYPE string.
DATA lv_xfile TYPE xstring.
lv_data = 'Example text, which will be opened in MS Word.'.
cl_abap_conv_out_ce=>create( RECEIVING conv = lr_conv ).
lr_conv->convert( EXPORTING data = lv_data
IMPORTING buffer = lv_xfile ).
cl_wd_runtime_services=>attach_file_to_response(
EXPORTING i_filename = 'wd4a.doc'
i_content = lv_xfile
i_mime_type = u2018applicaton/mswordu2019)
Thanks & Regards,
Ravi Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.