I'm generating pdf with Spire.Doc (https://ibb.co/6sW9cjk). In different sub that code works nicely, but when copied to another sub (will provide the same functionallity as original one) code breaks.
Simple:
- get first row of table
- fill cells with data
- insert new row
- repeat unit there is data
Everything is initialized properly, doc
is using existing doc file as template to fill it with data.
Today I noticed that even original code is not working! Same error, NullReferenceException
when adding second row to table.
If I do like this:
dri.Cells(0).AddParagraph()
dri.Cells(0).FirstParagraph.Text = itemsInReceiptCount
Code works but data is not in table row but under the table. (https://ibb.co/y06nnpP)
Is there any cool fix? Everything was working fine until (???).