on 10-19-2005 12:56 PM
Hi,
How can i insert in word document my company LOGO.
(I use method open_document_from_table from class i_oi_document_proxy.).
Thank for the help
Joseph Fryda
Message was edited by: joseph fryda
Hello Joseph,
try:
REPORT ZZJW_OLE .
TYPE-POOLS ole2.
DATA:
o_word TYPE ole2_object,
o_documents TYPE ole2_object,
o_actdoc TYPE ole2_object,
o_inlineshapes TYPE ole2_object,
o_logo TYPE ole2_object.
CREATE OBJECT o_word 'Word.Application'.
SET PROPERTY OF o_word 'Visible' = '1'.
GET PROPERTY OF o_word 'Documents' = o_documents.
CALL METHOD OF o_documents 'Add' = o_actdoc.
GET PROPERTY OF o_actdoc 'InlineShapes' = o_inlineshapes.
CALL METHOD OF o_inlineshapes 'AddPicture' = o_logo
EXPORTING
#1 = 'C:logo.jpg'
#2 = 0
#3 = 1.
WRITE: / 'Test'.
If you find my answer useful, please don't forget the reward.
Regards,
Juergen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use transaction OAOR for managing BDS and
program SAPRDEMOOFFICEINTEGRATION.
Implementation of method retrieve_document of CLASS c_excel_document is the most interesting from this point of view.
Dasha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
maybe you could load empty document (but with logo) from BDS.
Dasha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check this it may help you...
http://help.sap.com/saphelp_erp2004/helpdata/en/59/ae3dcb488f11d189490000e829fbbd/frameset.htm
regards,
venu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
8 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.