poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43877] - Cant open the saved XLS has 58 controls
Date Wed, 21 Nov 2007 21:40:26 GMT
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=43877>.
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=43877





------- Additional Comments From trejkaz@trypticon.org  2007-11-21 13:40 -------
Diff says they're the same.  My own unit test is (the filename is different):

    public void testEmbeddedObjects2003() throws Exception {
        File file = getDataFile("office/ole2-embedding-2003.xls");
        HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(file));
        //noinspection unchecked
        List<HSSFObjectData> objects = workbook.getAllEmbeddedObjects();
        assertEquals("Wrong number of objects", 2, objects.size());
        assertEquals("Wrong name for first object", "MBD06CAB431",
                     objects.get(0).getDirectory().getName());
        assertEquals("Wrong name for second object", "MBD06CAC85A",
                     objects.get(1).getDirectory().getName());
    }

The thing is, my patch didn't actually change the reading code anyway, and the
unit test doesn't test the writing code (it probably should though...)


-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message