Hi,
I am working on creating table of content (TOC) and creating table of Figures(TOF).
I am using aspose-words-18.5-jdk16 api for java.
I want TOC, in following format
1.TEST…1
1.1.1 Description…1
1.1.2 Where Used…2
2.SECTION 2… 3
2.1.1 Description…3
2.1.2 Where Used…3
3.SECTION 3…4
3.1.1 Description…4
3.1.2 Where Used…4
Resulting TOC
output.png (12.8 KB)
Expected TOC
expected .png (11.9 KB)
I have used custom style code, but it is not working. I have attached project please check.
com.aspose.words.zip (2.4 MB)
I am also facing problem regarding Table Of Figure (TOF) and Table Of Table. Please help me creating those also.
To create TOF, I am using following code
-builder.InsertField(" \\h \\z \\c \"Picture\"", null);
-builder.InsertField(" \\o \"1-3\" \\h \\z \\u", null);
But none of them is working.