Page 1 of 1

Create Table of Contents using Sti Table of contents Component

Posted: Fri Aug 26, 2022 5:14 am
by ShashankHegde16
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

Re: Create Table of Contents using Sti Table of contents Component

Posted: Fri Aug 26, 2022 9:17 am
by Max Shamanov
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?

Thank you.

Re: Create Table of Contents using Sti Table of contents Component

Posted: Mon Aug 29, 2022 7:10 am
by ShashankHegde16
Hi,

No issues. Is there way we can create table of contents in js using helper classes programmatically?

Re: Create Table of Contents using Sti Table of contents Component

Posted: Tue Aug 30, 2022 4:28 pm
by Max Shamanov
Hello,

We need time to prepare an answer for you.

Thank you