Skip to Content
0
Apr 24, 2009 at 12:08 PM

OLE2 Automation

51 Views

Hi friends. I'm trying to understand OLE2 automation. I have the following sample code:

CREATE OBJECT gs_word 'WORD.Application' .
  IF sy-subrc NE 0 .
    MESSAGE s000(su) WITH 'Erro ao criar objeto OLE!'.
    LEAVE PROGRAM .
  ENDIF.
* Torna Objeto visivel
  SET PROPERTY OF gs_word 'Visible' = '1' .
* Abre novo Documento
  GET PROPERTY OF gs_word 'Documents' = gs_documents .
  CALL METHOD OF gs_documents 'Add' .
* Busca manipulador  do documento ativo
  GET PROPERTY OF gs_word 'ActiveDocument' = gs_actdoc .

I want t know how I can seethe class relate to "Word.appliction" and his propertys and methods avaliable.

Thanks a lot for any help.