Hello,
I developed report in SSRS 2005. WHile exporting the report in DOC file using Aspose.word. I required Table of content generate in export doc file.
Please let me know the solution, how i can generate the table of content using SSRS renderning
Hello,
I developed report in SSRS 2005. WHile exporting the report in DOC file using Aspose.word. I required Table of content generate in export doc file.
Please let me know the solution, how i can generate the table of content using SSRS renderning
Hi Abhijit,
Document doc = new Document(@“Test001\Input.docx”);
DocumentBuilder builder = new DocumentBuilder(doc);
// Move DocumentBuilder cursor to the BookMark.
builder.MoveToBookmark(“BookMark”);
builder.InsertTableOfContents(“\o "1-3" \n \h \z \u”);
builder.InsertBreak(BreakType.PageBreak);
doc.UpdateFields();
doc.Save(@“Test001\out.docx”);