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 46992] New: XSSFCellStyle.cloneStyleFrom(...) failed, and always throw exception.
Date Wed, 08 Apr 2009 09:13:06 GMT

           Summary: XSSFCellStyle.cloneStyleFrom(...) failed, and always
                    throw exception.
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: matthew.knl@gmail.com

Created an attachment (id=23460)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23460)

I run following codes want to copy cell styles from one workbook to other. But
when I calling XSSFCellStyle.cloneStyleFrom(...), it failed and always throw


XSSFWorkbook source = new XSSFWorkbook("CloneCellStyleFail.xlsx");
XSSFWorkbook target = new XSSFWorkbook("target.xlsx");

for(short i=0; i<source.getNumCellStyles(); i++)
    XSSFCellStyle cs = target.createCellStyle();


A sample workbook is attached for your testing.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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