Aspose.Word For .NET UpdateFields Toc

Document.updatefields generates Toc, can’t generate heading4/5 level Toc, and your example only writes 3 level Toc, is it not supported?

Version 18.2

@Griffion

Thank you for your inquiry. Please add “1-5” in the TOC field code as shown below to get the desired output.

{ TOC \o “1-5” \h \z \u }

Thank you very much for your reply

@Griffion

Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.