‎2013 Aug 16 7:32 AM
hi
i can generate a excel file on application server.is there any way to add a logo to excel file that is placed on application server?
‎2013 Aug 16 7:46 AM
Hi Moorthy,
Use this FM MS_EXCEL_OLE_STANDARD_DAT'
see this link http://wiki.sdn.sap.com/wiki/display/Community/Insert+Picture+Image+in+Excel+using+OLE+Automation
‎2013 Aug 16 9:31 AM
can u gv me a simple example passing logo to this FM?i am not able to progress on this
‎2015 Apr 01 7:22 AM
Hi,
I know this thread is posted in 2013, but this is the post which came while searching "Add images in application server to excel", So I think it would be helpful for those who try to add image to excel from application server.
Download existing Bitmap logo in SAP to your presentation server. - Code Gallery - SCN Wiki
Use the FM SAPSCRIPT_GET_GRAPHIC_BDS to get the image from application server (uploaded via se78)
Use the FM SAPSCRIPT_CONVERT_BITMAP to convert the image to bitmap.
Use the FM SCMS_BINARY_TO_XSTRING to convert to xstring
Then use abap2xlsx method SET_MEDIA of the class ZCL_EXCEL_DRAWING to add the image to excel.
Regards
Jesse Owens K
‎2015 Apr 04 2:36 AM