Hi everyone,
I wrote a web service that is using JNIWrapper 3.8.2 to open up a Word document using the following code...
_Application app = Application.create(ClsCtx.LOCAL_SERVER);
app.setVisible(new VariantBool(false));
_Document doc = null;
try
{
doc = app.getDocuments().add(new Variant(WORKING_FOLDER + fileName + ".doc"),
Variant.createUnspecifiedParameter(),
Variant.createUnspecifiedParameter(),
Variant.createUnspecifiedParameter());
} catch (Exception e) {
log.error("Unable to open DOC... " + WORKING_FOLDER + fileName + ".doc - (" + e.getMessage() + ")");
}
This works just fine on all of our servers except for one server. All of the servers are Windows Server 2008 R2. On all of the servers, I copied jniwrap64.dll into the windows\system32 folder. What can be missing on this one server?
This is the error that I'm getting...
Caused by: com.jniwrapper.win32.automation.AutomationException: COM object method returns error code: 0x80020009; DISP_E_EXCEPTION
Any ideas?
Thanks!