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)
the exception took place in this line of code:
Dispatch documents = Dispatch.get(MsWordApp,"Documents").toDispatch();