Hoping someone out there might have had the same issue as this and have found a resolution.
I'm trying to set certain rows within a table to be grouped so that if a row falls into the next page the other rows will also go across to that next page.
I'm using PdfSharp and Migradoc setting the rows KeepWith property to the index of the row i want to keep attached to.
IE:
var row = myTable.AddRow();
var rowIndex = row.Index;
foreach (var term in terms)
{
row = myTable.AddRow();
if (term.name == "group")
{
row.KeepWith = rowIndex;
}
}
When i try and load the pdf I get an 'Object reference not set to an instance of an object' error thrown and cannot figure out why. Any help would be great.