Using version 21.8 of the ‘aspose words for .NET’ and I’m having an issue with the ToC being incorrect on document creation.
I am using the reporting engine to generate the data then insert it into a document with an existing placeholder ToC.
However after the document is generated the ToC is wrong and I am forced to right click > update fields to get it to generate correctly.
I have tried adding in “doc.updatefields();” but this doesn’t seem to have any effect.
Is this functionality incompatible with the reporting engine? do you have any iseas on how I can resolve this issue?