0 Replies Latest reply on Aug 2, 2007 7:35 AM by 843804

    Jacob opens word but exception

      Hello I'm trying to work with jacob. I downloaded and installed jacob and wanted to test it. word opend but than I got an exception.

      Exception in thread "main" com.jacob.com.ComFailException: A COM exception has been encountered:
      At Invoke of: Documents
      Description: An unknown COM error has occured.
      at com.jacob.com.Dispatch.invokev(Native Method)
      at com.jacob.com.Dispatch.get(Dispatch.java)
      at word.WordBean.createNewDocument(WordBean.java:28)
      at word.WordTest.main(WordTest.java:8)

      the exception took place in this line of code:
      Dispatch documents = Dispatch.get(MsWordApp,"Documents").toDispatch();

      Any tipps?