Completed
Last Updated: 20 May 2022 07:38 by ADMIN
Release LIB 2022.2.523 (23 May 2022)
B
Created on: 27 Sep 2019 09:51
Category: RichTextBox
Type: Bug Report
0
RichTextBox: NullReferenceException is thrown while rendering a Table without TableRows

Showing a document that contains a Table object without any TableRow inside leads to NullReferenceException.

Workaround: After importing the document, remove the tables that don't have content:

foreach (var table in document.EnumerateChildrenOfType<Table>())
{
    if (table.Rows.Count < 1)
    {
        table.Parent.Children.Remove(table);
    }
}

0 comments