See attached sample: a cell is merged over three columns, and the text contains a linebreak.
AsposeCellsTest.zip (4.8 KB)
I call “AutoSizeRows” with “AutoFitterOptions.AutoFitMergedCellsType” (https://docs.aspose.com/cells/net/autofit-rows-for-merged-cells/. The property “Style.IsTextWrapped” is also set to “true”.
But in the resulting document, the row still has the default height.
The same happens if the cell content has no linebreak, but is long enough to wrap.
When a cell spans multiple rows, the row height is calculated properly.
Attached sample is a .NET5 project, but the issue happens for us in a .NET 4.8 application.
Best regards
Wolfgang