Reputation: 449
I have a large table I'm adding to a document. In order to avoid running out of memory, I'm doing this:
if (rowCounter % 100 == 0)
{
document.Add(affidavitsTable);
}
That improved performance, but now, after ever 100 rows, there's a gap in the middle of the table:
I've placed a screenshot here - sorry can't post images yet... :-/
I'm don't really understand what the comments mean here but I'm wondering if it's related.
Any help would be appreciated!
Thanks, Eliezer
Upvotes: 0
Views: 50
Reputation: 449
I found the answer. This line was hiding in my code:
affidavitsTable.SpacingBefore = 8;
:-\
Upvotes: 2