create list of contents with Anchors

Stimulsoft Reports.PHP discussion
andreb
Posts: 53
Joined: Tue Sep 20, 2011 5:15 am
Location: Netherlands

create list of contents with Anchors

Post by andreb »

Hi,

I would like to create a contents list at the beginning of a report.

When I study your (online) demo 'Interactive Reports'->'Anchors' I can understand the mechanism with GetAnchorPageNumber etcetera.
But I cannot find the property 'ProcessAtEnd' of the text component which needs to be set (according your manual) :?
Where can I find it?

By the way, your demo doesn't show pagenumbers in the contents list either.

Thank you for your help.

André
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: create list of contents with Anchors

Post by HighAley »

Hello, André.

We are working on your issue.
We will let you know when your issue will be fixed.

Thank you.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: create list of contents with Anchors

Post by Andrew »

Hello,

The issue is fixed.
The patch will be available in the next prerelease build.

Thank you.
andreb
Posts: 53
Joined: Tue Sep 20, 2011 5:15 am
Location: Netherlands

Re: create list of contents with Anchors

Post by andreb »

Hi guys,

I'm working on this subject again.
Great that you handled the issue. I can see in your demo that anchors functionality works. It looks very good.

But I'm still puzzled how to do do it myself.

I have a text component with the {GetAnchorPageNumber(sender.TagValue)}.
The hyperlink of that component is set to #{myreference} and the Tag property to {myreference}.
However, when I render the report the page number stays 0.

According the manual I should somewhere ' ...Set the RenderingEvent to {AddAnchor (myreference});}... ;
I guess that is what i'm missing. But where and how can I do that?

Regards,

Andre
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: create list of contents with Anchors

Post by HighAley »

Hello.

Please, read step-by-step instruction in the Stimulsoft User Manual.

Thank you.
andreb
Posts: 53
Joined: Tue Sep 20, 2011 5:15 am
Location: Netherlands

Re: create list of contents with Anchors

Post by andreb »

Hello Aleksey,

Yes, I tried the steps.
But I fail at step 19.2:

19.2. Subscribe to the event. Set the RenderingEvent to {AddAnchor (Products.ProductName);};

The property page does not show any possibility for writing event code. See attachment.
I understand that reports fx does not support events, but I see that your demo works. So how did you get the event working? :roll:
Attachments
noevent.jpg
noevent.jpg (92.11 KiB) Viewed 5510 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: create list of contents with Anchors

Post by HighAley »

Hello.

You can miss the step 19.2.
Could you specify which version do you use?
This feature is available in our latest major release 2014.2.

Thank you.
andreb
Posts: 53
Joined: Tue Sep 20, 2011 5:15 am
Location: Netherlands

Re: create list of contents with Anchors

Post by andreb »

Hello Aleksey,

I use the latest version 2014.2

I also tried to add pagenumbers for the categories of your original demo Anchors.mrt
This file has been attached.
As you can see, the pagenumbers for products still work fine. But the pagenumbers for categories stay 0.
Am I forgetting something :? ?

Regards, André
Attachments
Anchors.mrt
Demo Anchors report with Category pagenumber
(49.53 KiB) Downloaded 234 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: create list of contents with Anchors

Post by Alex K. »

Hello,

Please check the modified report in the attachment.

Thank you.
Attachments
Anchors_modified.mrt
(50.86 KiB) Downloaded 269 times
andreb
Posts: 53
Joined: Tue Sep 20, 2011 5:15 am
Location: Netherlands

Re: create list of contents with Anchors

Post by andreb »

Thank you Aleksey, your report works.

But what did you modify? I went through all the components, but I can't find a difference between your report and the report that I have sent.

Regards, André
Post Reply