I have been trying Aspose word TOC with Custom Style, However, it shows only first item in TOC. It works fine with pre define styles such as heading1 etc.
Here is my code
builder.InsertTableOfContents("\h \z \u \t “Style1,1"”);
it works with heading1
builder.InsertTableOfContents("\o “1-1” \h \z \u");
Please let me know if i need to add any additional switch for Custom Style.