We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Updatefileds cause self reference loop in TOC

Hi,
when the same bookmark is inserted twice and there is a ref field on the same bookmark’s page, call Updatefields() causes a self-reference loop in the TOC.

If Updatefields() is not called, Word resolves correctly the TOC.

You can see on the attached output.docx the TOC with ? words and loop levels.
In the real application, from 25 real pages without Updatefields() the doc grows until 200 and over pages.

I guess is Updatefileds() problem.
Can you help me on how manage this situation ?

Thanks, Ivano

I’m using 13.9 version

Hi Lucio,


Thanks for your inquiry. I have tested the scenario using Aspose.Words for .NET 14.2.0 and have not found the shared issue. Please use the latest version of Aspose.Words for .NET 14.2.0. I have attached the output document with this post for your kind reference.