Table of contents and page numbering

Stimulsoft Reports.NET discussion
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Table of contents and page numbering

Post by Alex K. »

Hello,

Could you explain your issue in more details?

As a way, you can implement your own event in which merge the necessary pages and page counts in the additional report and then print it.

Thank you.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: Table of contents and page numbering

Post by socotek »

We have final report (whole report) that is made from different report file .mrt.
We need to have this dinamically creation because of client that choose what elements he wants.

For example, our code is like this below:
Dim reportAss = New StiReport
Dim report1 = New StiReport
Dim report2 = New StiReport
...
'Create report1 with data
'Create report2 with data
...
reportAss.SubReports.Add(report1)
reportAss.SubReports.Add(report2)

Is it now possibile (with latest version of your product) to insert the number of pages and include table of contents of whole report?

Many thanks
Luca
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Table of contents and page numbering

Post by Alex K. »

Hello,

As a way, you can implement your own event in which merge the necessary pages and page counts in the additional report and then show it. Also, in this case, you should manually calculate page counts for the TOC.

Thank you.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: Table of contents and page numbering

Post by socotek »

Ok, thanks.
Can I have more details? Have you an example?

Thank you
Luca
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Table of contents and page numbering

Post by Alex K. »

Hello,

You can use the Double Pass. You can merge the necessary pages, then in the first pass save page positions (page numbers) for each group, pages (as you needed), and in the second pass show these values in the table of contents.

Thank you.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: Table of contents and page numbering

Post by socotek »

Aleksey,
I understand what you mean ... could you please send me some examples?

Thanks in advance
Luca
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Table of contents and page numbering

Post by Alex K. »

Hello,

Please check the sample in the attachment.

Thank you.
Attachments
ReportSample.mrt
(29.77 KiB) Downloaded 304 times
Post Reply