Approved
Last Updated: 27 Sep 2019 09:53 by ADMIN
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 which contains 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>().ToList())
{
    (table.Parent as Section).Blocks.Remove(table);
}

0 comments