https://issues.apache.org/bugzilla/show_bug.cgi?id=46992
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: [email protected]
ReportedBy: [email protected]
Created an attachment (id=23460)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23460)
CloneCellStyleFail.xlsx
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
exception.
--
XSSFWorkbook source = new XSSFWorkbook("CloneCellStyleFail.xlsx");
XSSFWorkbook target = new XSSFWorkbook("target.xlsx");
for(short i=0; i<source.getNumCellStyles(); i++)
{
XSSFCellStyle cs = target.createCellStyle();
cs.cloneStyleFrom(source.getCellStyleAt(i));
}
--
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: [email protected]
For additional commands, e-mail: [email protected]