|
Failed to create Ole Client -
12-16-2010, 05:39 AM
Hi,
I have an RCP application. I can open microsoft office documents inside, f.e. with the docx extension. But if I modify the document and save it, the save operation corrupts the document somehow. Next time I try to open it from the RCP application,
try {
site = new org.eclipse.swt.ole.win32.OleClientSite (frame, SWT.NONE, "Word.Document",f);
} catch (org.eclipse.swt.SWTException e) {
String str = "Create OleClientSite Error" + e.toString ();
System.out.println (str);
return;
}
I got an OLE exception "cannot create the in place editor".
org.eclipse.swt.SWTException: Failed to create Ole Client. result = -2147467260
If I try to open the document directly with microsoft office, the error is "the file is corrupted and cannot be opened". If I chose to restore the file, the file is restored correctly.
I have eclipse 3.5 and Java 6
Any help is greatly appreciated.
Thanks.
|