poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55745] XSSFSheet's method getTables() fails when the sheet contains more than 6 tables
Date Wed, 06 Nov 2013 10:22:35 GMT

--- Comment #3 from Walker <liubao2014@gmail.com> ---
(In reply to Dominik Stadler from comment #1)
> Can you provide a sample file and test code which shows the problem?
> Preferably as unit test?

I tried it again, and found that: 
1). getTables() works when no table cells are commented;
2). getTables() works when some table cell is commented and the number of
tables is less than 7, it fails when the number of tables is no less than 7.

The test class:

public class TablesTest {    
        public static void main(String[] args) throws InvalidFormatException,
IOException {
            String workbook = "workbook.xlsx";
            OPCPackage pkg = OPCPackage.open(new File(workbook));
            XSSFWorkbook wb = new XSSFWorkbook(pkg);
            XSSFSheet sheet = wb.getSheetAt(0);

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message