TOC

Stimulsoft Reports.PHP discussion
Post Reply
riskcom
Posts: 10
Joined: Tue Apr 10, 2018 6:15 am

TOC

Post by riskcom »

Hi,

I am new to Stimulsoft and i want to know how to generate the table of contents for multipage report. I have been using both GetAnchorPageNumber and AddAnchor functions but always return zero.

Thanks
Leo
Attachments
toc_test.mrt
(3.29 KiB) Downloaded 218 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: TOC

Post by HighAley »

Hello.

You are trying to use the .Net methods.
This feature is working on Reports.PHP but a little different way.
The addAnchor() method should be used on the Rendering event of a band and you should call it
this.addAnchor("Page2");
Please, look at the attached report template.

Thank you.
Attachments
toc_test_ (1).mrt
(3.68 KiB) Downloaded 227 times
riskcom
Posts: 10
Joined: Tue Apr 10, 2018 6:15 am

Re: TOC

Post by riskcom »

Hi,

Is there a way to use AddAnchor without Databand? Sometimes we may have a static content without any data from database.

Thanks
Leo
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: TOC

Post by Lech Kulikowski »

Hello,

Yes, you can add the code for the necessary component.

Thank you.
Post Reply