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

    Jacob opens word but exception

    843804
      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?

      thanks,
      hagen