You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2006/07/05 13:49:56 UTC

DO NOT REPLY [Bug 39965] New: - grouping row stopped at 32769 row

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=39965>.
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=39965

           Summary: grouping row stopped at 32769 row
           Product: POI
           Version: 3.0-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: dm.smirnov@gmail.com


hi all!
problem with grouping row. If  I do grouping 35000 rows at first time that all
well, but in next one grouping stopped at 32769 row.


see code below:

import java.io.FileOutputStream;
import java.io.IOException;

import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

public class Test {

    public static void main(String[] args) {
        long started = System.currentTimeMillis();
        FileOutputStream out = null;
        try {
            HSSFWorkbook book = new HSSFWorkbook();

            HSSFSheet sheet = book.createSheet("test");
            sheet.setRowSumsBelow(false);
            sheet.setRowSumsRight(false);
            for (int i = 1; i < 35000; i++) {
                HSSFRow row = sheet.createRow(i);
                HSSFCell cell = row.createCell((short) 0);
                cell.setCellType(HSSFCell.CELL_TYPE_STRING);
                cell.setCellValue("TEST");
                sheet.groupRow(i, i);
                sheet.groupRow(i, i);
            }

            out = new FileOutputStream("C:\\Test.xls");
            book.write(out);
            System.out.println("excel generated: " + (System.currentTimeMillis()
- started) + " ms [" + ((System.currentTimeMillis() - started) / 1000 / 60) + "
min]");

        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (out != null) {
                    out.flush();
                    out.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}

-- 
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: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/