Page 1 of 1

TOC

Posted: Tue Apr 10, 2018 6:30 am
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

Re: TOC

Posted: Tue Apr 10, 2018 1:12 pm
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.

Re: TOC

Posted: Wed Apr 11, 2018 12:07 am
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

Re: TOC

Posted: Fri Apr 13, 2018 8:16 am
by Lech Kulikowski
Hello,

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

Thank you.