poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57985] New: setRepeatingRows not working with merged rows
Date Mon, 01 Jun 2015 19:43:12 GMT

            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: dev@poi.apache.org
          Reporter: jclaxton@utilinc.com

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

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);

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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message