Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OLE Insert image (from application server) into word document

0 Likes
657

Hi all,

I need to insert an image into word document (this images has been upload from OAAD transaction and are stored in AL11 in dir_home dicectory), so this images are already in system. I know that with CALL METHOD OF wordobj 'InsertPicture' instruction you can insert an imagen from c: file (local pc file) but I don´t know how can I do that from application server.

Thanks in advance

Rachit.

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
531

Anyway, you need to transfer the file to the frontend, so you may download to the temporary directory (cl_gui_frontend_services=>get_temp_directory). Another solution could be download via the SAP data provider, and operate on its object (maybe copy/paste), but I never tried.