I'm currently using OO 3.0.1. I have an issue with sending docx files to OO.
This block of code will work if the file being sent is relative to the server:
(e.g. sourceDocument = "file///c:/test.docx"):
Code: Select all
PropertyValue[] propVal = new PropertyValue[1];
propVal[0] = new PropertyValue();
propVal[0].Name = "FilterName";
propVal[0].Value = "Microsoft Word 2007 XML";
xcomponent = xcomponentloader.loadComponentFromURL(sourceDocument, "_blank", 0, propVal );
The above example does work for all other document types I have tried, i.e doc/xls/ppt/xlsx/pptx.
Any ideas?