Unplanned
Last Updated: 11 May 2018 16:44 by ADMIN
ADMIN
Tanya
Created on: 10 May 2018 11:40
Category: WordsProcessing
Type: Bug Report
1
WordsProcessing: ArgumentOutOfRangeException is thrown when exporting a table cell whose RowSpan value is bigger than the available rows
When the RowSpan value is bigger than the available rows, a ArgumentOutOfRangeException is thrown while exporting the document.

Workaround: Change the value of RowSpan after importing:

foreach (var cell in document.EnumerateChildrenOfType<TableCell>())
{
    while (cell.RowSpan > cell.Row.Table.Rows.Count)
    {
        cell.RowSpan--;
    }
}
0 comments