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
Create Table of Contents using Sti Table of contents Component
-
- Posts: 5
- Joined: Tue Jul 12, 2022 12:07 pm
Create Table of Contents using Sti Table of contents Component
- Attachments
-
- Report_Criteria.mrt
- (57.98 KiB) Downloaded 92 times
-
- Posts: 789
- Joined: Tue Sep 07, 2021 10:11 am
Re: Create Table of Contents using Sti Table of contents Component
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?
Thank you.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?
Thank you.
-
- Posts: 5
- Joined: Tue Jul 12, 2022 12:07 pm
Re: Create Table of Contents using Sti Table of contents Component
Hi,
No issues. Is there way we can create table of contents in js using helper classes programmatically?
No issues. Is there way we can create table of contents in js using helper classes programmatically?
-
- Posts: 789
- Joined: Tue Sep 07, 2021 10:11 am
Re: Create Table of Contents using Sti Table of contents Component
Hello,
We need time to prepare an answer for you.
Thank you
We need time to prepare an answer for you.
Thank you