Hello.
In our app we generating Word document report by assembling objects from Aspose.Words namespace.
Sometimes using DocumentBuilder, but rather assembling (adding) object1 to object2Collection
What is the problem:
We have a lot of records which we want to generate to Word. Everything was perfect, except ToC. After generating the ToC and its lines were great, but the number of pages were not.
For example:
DataObjectA..................................16
DataObjectAMember1...........16
DataObjectAMember2...........16
DataObjectAMember3...........17
.........
DataObjectZMember100........200
The value of page numbers do not equals with page number where the DataObjects were. In real the DataObjectZMember100 is at page number 177 not 200.
For example: DataObjectB1..............23 is at page 24.
In document, after click into ToC, hit F9 and confirm the update it will update to correct numbers. Pretty weird.
Please let me know if the content of attached class is insufficient.
PS: I am afraid that i am not authorized to provide you generated document.
Please could you analyze this problem?
Thank you for your help.
Best regards,
Lukas Rada