0 Replies Latest reply on Jan 14, 2014 9:32 AM by Roland Pocek

    replacement for COM/COM+ functions in TMART 4.2?

    Roland Pocek

      hi,

       

      customer used the COM interface in TMART 4.1 alot and there is no support for it in 4.2. is there any replacement for this? for example to create scripts to be able to easily interact with applications like word and so on

       

      like...

      begin

          ComCreateObject(hApp, "IDispatch", "Word.Application");

          ComGetInterface(hApp, "get:Documents", hDocuments, "IDispatch");

         

          // open the document read-only - so that we get no disturbing messages about locked files

          ComFunction(hFunc, hDocuments, "Open");

          ComSetString(hFunc, "FileName", sDocument);

          ComSetBoolean(hFunc, "ConfirmConversions", true);

          ComSetBoolean(hFunc, "ReadOnly", false);

          ComCall(hFunc);

      ...

       

      cheers

      rop