Hi everyone. I'm trying to imeplement reports generation from template. The problem I encountered is I try to do the following:
auto cell = wks.cell(j, i);
newWks.cell(j, i).value() = cell.value();
newWks.cell(j, i).setCellFormat(cell.cellFormat());
And I get excel corruption error and no styles at all. Template contains only bold/normal text and cell's borders.
Is there any simple way to just copy styles from one document to another?
Also I don't see a possibility to somehow copy merged cell. Is it intended?
Thank you
Hi everyone. I'm trying to imeplement reports generation from template. The problem I encountered is I try to do the following:
auto cell = wks.cell(j, i);
newWks.cell(j, i).value() = cell.value();
newWks.cell(j, i).setCellFormat(cell.cellFormat());
And I get excel corruption error and no styles at all. Template contains only bold/normal text and cell's borders.
Is there any simple way to just copy styles from one document to another?
Also I don't see a possibility to somehow copy merged cell. Is it intended?
Thank you