Hi,
I've just discovered Aspose components and I'm very impressed.
Notwithstanding , I'm not able to create a TOC and save into docx format. Am I missing sommething?
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertTableOfContents("\\f \\h");
builder.InsertBreak(BreakType.PageBreak);
// Insert TC field that represents TOC element
builder.InsertField("TC \"Tracker Panels(Item 1)\" \\n \\l 1", "");
builder.Writeln("Tracker Panels");
builder.InsertField("TC \"Tag Data\" \\l 2", "");
builder.Writeln("Tag Data");
builder.InsertField("TC \"Product Data\" \\l 2", "");
builder.Writeln("Product Data");
doc.Save("out.doc"); //Works OK
doc.Save("out.docx"); //Cannot find de TOC