-
Notifications
You must be signed in to change notification settings - Fork 188
Open
Labels
enhancementNew feature or requestNew feature or requestforumPlease use Discussions or the Support forum to ask Support questions - https://forum.pdfsharp.net/Please use Discussions or the Support forum to ask Support questions - https://forum.pdfsharp.net/support
Description
We are creating a table with a dynamic count of rows. For some rows we are using the KeepWith property to keep rows together on a page break. Therefore it's possible that any of the (last) rows may be having a value for KeepWith exceeding the row count of the table. In such cases a System.ArgumentOutOfRangeException is thrown when rendering the document:
..
at MigraDoc.DocumentObjectModel.Tables.Rows.get_Item(Int32 index)
at MigraDoc.Rendering.TableRenderer.CalcLastConnectedRowDirect(Int32 row)
at MigraDoc.Rendering.TableRenderer.CreateConnectedRows()
..
PDFsharp/src/foundation/src/MigraDoc/src/MigraDoc.Rendering/Rendering/TableRenderer.cs
Line 974 in 6aacefa
if (row < lastConnectedRow) |
At the moment we have a workaround for this, but it would be helpful if a value for KeepWith that exceeds the table row count would be simply reduced to the maximum allowed value on rendering.
Thanks!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestforumPlease use Discussions or the Support forum to ask Support questions - https://forum.pdfsharp.net/Please use Discussions or the Support forum to ask Support questions - https://forum.pdfsharp.net/support