https://bz.apache.org/bugzilla/show_bug.cgi?id=57985
Bug ID: 57985
Summary: setRepeatingRows not working with merged rows
Product: POI
Version: 3.11-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: SS Common
Assignee: [email protected]
Reporter: [email protected]
Created attachment 32773
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32773&action=edit
Print previews
Sheet.setRepeatingRows() isn't worked when you try to use it with merged rows.
Only the top row of a set of merged rows is being printed (see attached
pictures).
The issue came up when I replaced this code (which is deprecated):
myWorkbook.setRepeatingRowsAndColumns(myWorkbook.getSheetIndex(mySheet), 0,
rowHeaderColCount - 1, 0, freezeRow - 1);
With this code:
CellRangeAddress ca = new CellRangeAddress(0, rowHeaderColCount - 1, 0,
freezeRow - 1);
mySheet.setRepeatingRows(ca);
mySheet.setRepeatingColumns(ca);
setRepeatingRowsAndColumns() behaves correctly. Using the later code, when I
print from Excel, the merged rows are cut off after the first page.
--
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]