Skip to Content
author's profile photo Former Member
Former Member

Insert Logo in WORD

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 03:23 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2005 at 12:53 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2005 at 11:41 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2005 at 12:34 PM

    Hi,

    maybe you could load empty document (but with logo) from BDS.

    Dasha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.