Create Table of Contents using Sti Table of contents Component
Posted: Fri Aug 26, 2022 5:14 am
Hi Team,
Recently we have been evaluating the StimulSoft reporting designer for creating the template and generating the report by merging of few sub report. In this process we needed to generate the Table of contents for a pdf output with all the sub report . We tried using the https://admin.stimulsoft.com/documentat ... tents.html
component class to create the TOC programmatically but the page was not displaying any content. Appreciate the help to generate the toc.
this.report = new this.Stimulsoft.Report.StiReport();
this.report.loadFile(template);
createToc() {
return new Promise((resolve) => {
const page = new this.Stimulsoft.Report.Components.StiPage(this.report);
const tableOfContents = new this.Stimulsoft.Report.Components.StiTableOfContents();
page.components.add(tableOfContents);
this.report.renderedPages.add(page)
resolve(this.report);
});
}
Thanks
Shashank
Recently we have been evaluating the StimulSoft reporting designer for creating the template and generating the report by merging of few sub report. In this process we needed to generate the Table of contents for a pdf output with all the sub report . We tried using the https://admin.stimulsoft.com/documentat ... tents.html
component class to create the TOC programmatically but the page was not displaying any content. Appreciate the help to generate the toc.
this.report = new this.Stimulsoft.Report.StiReport();
this.report.loadFile(template);
createToc() {
return new Promise((resolve) => {
const page = new this.Stimulsoft.Report.Components.StiPage(this.report);
const tableOfContents = new this.Stimulsoft.Report.Components.StiTableOfContents();
page.components.add(tableOfContents);
this.report.renderedPages.add(page)
resolve(this.report);
});
}
Thanks
Shashank