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

OLE Insert image (from application server) into word document

0 Kudos

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



Active Contributor
0 Kudos

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.