Aspose words java api to insert table of figures

Hello Aspose team,

What aspose words for java api call can be used to insert table of figures?

Thanks,

Rita

Hi Rita,


Thanks for your inquiry. Please note that TOC, TOF and TOT are all represented by fields in Microsoft Word document. You can insert fields in Word document using DocumentBuilder.InsertField method. Please see the following code for example:

DocumentBuilder builder = new DocumentBuilder(doc);

builder.InsertField(“TOC \h \z \c “Picture””,
null);


Best regards,