Create Table of Contents using Sti Table of contents Component

Stimulsoft Reports.JS discussion
Post Reply
ShashankHegde16
Posts: 5
Joined: Tue Jul 12, 2022 12:07 pm

Create Table of Contents using Sti Table of contents Component

Post 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
Attachments
Report_Criteria.mrt
(57.98 KiB) Downloaded 92 times
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

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

Post by Max Shamanov »

Hello,

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

Thank you.
ShashankHegde16
Posts: 5
Joined: Tue Jul 12, 2022 12:07 pm

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

Post by ShashankHegde16 »

Hi,

No issues. Is there way we can create table of contents in js using helper classes programmatically?
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

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

Post by Max Shamanov »

Hello,

We need time to prepare an answer for you.

Thank you
Post Reply