Completed
Last Updated: 08 May 2023 14:18 by ADMIN
Release R2 2023
ADMIN
Tanya
Created on: 11 Oct 2016 07:09
Category: WordsProcessing
Type: Bug Report
7
WordsProcessing: Table row which has defined only 'val' attribute of the 'trHeight' is imported as row with auto height

TableRow which has defined an only val attribute of the trHeight is imported as a row with auto height. By the specification, this is right, but MS Word takes the val value as row height. Also MS Word exports "At Least" row height with only 'val' set.

Workaround: Iterate through the table rows and set them HeightType to Exact or AtLeast:

foreach (var row in this.document.EnumerateChildrenOfType<TableRow>())
{
    row.Height = new TableRowHeight(HeightType.AtLeast, row.Height.Value);
}

0 comments