Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

example of CL_WORD_SAPSCRIPT_EDITOR or other possible word integration ...

without OLE integration.

I try to find a working example for CL_WORD_SAPSCRIPT_EDITOR

but I can't find it anywhere on sdn or the rest of cyberspace or in where used in SAP

anybody can help me out with an example ?

or perhaps to explain the problem. we try to connect to ms word without OLE.

so start up a .dot file and run a macro.

in the start up with command line parameters it doesn't work

in the run command I can put , but the macro isn't running automaticaly (yes all security is off)

winword.exe /tC:\temp\sapbrief.dot /mFilePrint /q

and if I translate into abap

CALL METHOD cl_gui_frontend_services=>execute
  EXPORTING
*     document               =
     application            = 'winword'
     parameter              = '/tP:\temp\sapbrief.dot /mFilePrint /q'
*    default_directory      =
*    maximized              =
*    minimized              =
*    synchronous            =
     operation              = ''
  EXCEPTIONS
    cntl_error             = 1
    error_no_gui           = 2
    bad_parameter          = 3
    file_not_found         = 4
    path_not_found         = 5
    file_extension_unknown = 6
    error_execute_failed   = 7
    synchronous_failed     = 8
    not_supported_by_gui   = 9
    others                 = 10
        .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

the /q is recognized but the /m not

anybody can help me out ?

kind regards

arthur de smidt

Edited by: A. de Smidt on Jul 14, 2009 3:53 PM

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question