https://issues.apache.org/bugzilla/show_bug.cgi?id=52484
Bug #: 52484
Summary: Superscript font works for XSSFWorkbook but not
SXSSFWorkbook
Product: POI
Version: 3.8-dev
Platform: PC
Status: NEW
Severity: regression
Priority: P2
Component: SXSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
I changed my code to use SXSSFWorkbook (no other change) and my footnotes
(which I superscript) stopped super-scripting. It worked in XSSFWorkbook and
I'm having to roll back.
The below code does the super-scripting. I can send you the Excel files if you
need. Thanks.
footnoteFont = wb.createFont();
footnoteFontSuper = wb.createFont();
footnoteFontSuper.setTypeOffset(Font.SS_SUPER);
...
String fs = footnoteString.toString();
String totalString = header + fs;
RichTextString richString =
createHelper.createRichTextString(totalString);
richString.applyFont(header.length(), totalString.length(),
footnoteFontSuper);
richString.applyFont(0, header.length(), headerFont);
cell.setCellValue(richString);
--
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]