Hi,
Thank you for contacting our support and providing us with the detailed information.
Well, the problem might be related to the OS, but we need to find out the cause of that DISP_E_EXCEPTION COM exception first. To get an exception error message you just need to catch the AutomationException, which is specially designed to handle such kind of COM exceptions, and get the its extended exception info, for example:
try {
// perform operation
} catch (AutomationException e) {
ExcepInfo info = e.getExceptionInformation();
String description = info.getBstrDescription();
System.err.println(description);
}This approach should give you an exception description directly form the Word application and hopefully it should explain why it happens.
It also can be important not to hide the Word application window (using the app.setVisible(new VariantBool(false)); method call), because I know that some methods cannot be invoked properly while a word window is invisible.
Please try these suggestions and let me know the results.
Sincerely,
Serge