ClosedXML.Report icon indicating copy to clipboard operation
ClosedXML.Report copied to clipboard

Why some row have different height

Open qjohnchen opened this issue 3 years ago • 2 comments

I have a report that has 3 simple tables.

The result is fine but some of the rows have different height ( as row 9 and 14). What could be the cause of this issue. Thanks, John

ClosedXml_Report

qjohnchen avatar Dec 10 '21 03:12 qjohnchen

Hello. Here is asked the same question. https://github.com/ClosedXML/ClosedXML.Report/issues/252

I know what the problem is, but I don’t have time to fix it yet. The fact is that the height of the header of one of the tables is somehow not reset and spreads to other rows. Try removing the fixed width for headers in the template.

b0bi79 avatar Dec 12 '21 17:12 b0bi79

I have the same problem. I was looking for some solution. It is also necessary to set the height of the moved lines at the end of the sheet. Something like this in RangeTemplate.cs: image

It works for me, but I don't know if the calculations are correct. I can't spend more time on this.

CeI-sw avatar Feb 04 '23 09:02 CeI-sw