Hi.
I have found a cause for my previous post
<a href="</a>
Our report generation engine assumes a copying a data range into workbook. For this purpose we perform following actions:
1) Insert a rows for new range (for move data, that located below copied range)
2) Copy all from source range to new
A following example shows enumeration of operations:
@Test
public void copyRangeTest() throws Exception {
Workbook wb = new Workbook("D://in.xlsx");
Cells cells = wb.getWorksheets().get(0).getCells();
cells.insertRows(32, 24, true);
Range range = createRange(cells, 32, 1, 24, 18);
Range source = createRange(cells, 8, 1, 24, 18);
copy(range, source, PasteType.ALL);
wb.save("D://out.xlsx");
}
But at end this operation we will find a two conditional formatting rules per each cell (e.g. G52)
But on the other hand, if we will open in.xlsx and pefrorm this actions manually, then we will receive only one conditional formatting for this cell.
Also i noticed, that after copy all by libary's API a formula of conditional formatting is not changed, but when i perform copy manually formula change according to new range position
Best regards. Alexey