DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=43222>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43222 ------- Additional Comments From [EMAIL PROTECTED] 2007-08-27 21:17 ------- Created an attachment (id=20717) --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20717&action=view) Test file for OLE2 embedding in an XLS file. Attaching test file. Unit test code: (there is a tiny amount of our framework in it to locate the file, should be easily removed. /** * Tests that embedded objects are accessible. * * @throws Exception if an error occurs. */ public void testEmbeddedObjects() throws Exception { File file = getDataFile("office/ole2-embedding.xls"); HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(file)); List objects = workbook.getAllEmbeddedObjects(); assertEquals("Wrong number of objects", 2, objects.size()); assertEquals("Wrong name for first object", "MBD06CAB431", ((HSSFObjectData) objects.get(0)).getDirectory().getName()); assertEquals("Wrong name for second object", "MBD06CAC85A", ((HSSFObjectData) objects.get(1)).getDirectory().getName()); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
