To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=96910 Issue #|96910 Summary|Docx Fail to extract Embedded Objects via UNO Component|Word processor Version|OOO300m9 Platform|PC URL| OS/Version|Linux Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P1 Subcomponent|programming Assigned to|writerneedsconfirm Reported by|cactuscomputing
------- Additional comments from [EMAIL PROTECTED] Thu Dec 4 17:31:52 +0000 2008 ------- I have some code that extracts OLE objects from MS Office documents. This works fine for .doc files, but not for docx. The prblem occurs as the element names are not retrieved. Consider: XTextEmbeddedObjectsSupplier oTSSupp = (XTextEmbeddedObjectsSupplier)UnoRuntime.queryInterface( XTextEmbeddedObjectsSupplier.class, document ); XNameAccess access = oTSSupp.getEmbeddedObjects(); String[] names = access.getElementNames(); where msf is an XMultiServiceFactory instance and document is a XTextDocument instance. When run on the attached docx file, the names array contains only a single element that's zero length. This causes the subsequent extraction code to fail with a com.sun.star.lang.IllegalArgumentException when creating the storage. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
