GetAnchorPageNumber

Stimulsoft Reports.WPF discussion
Post Reply
NuWa
Posts: 4
Joined: Thu Oct 17, 2013 3:20 pm

GetAnchorPageNumber

Post by NuWa »

Hello,
I used {GetAnchorPageNumber(“MyAnchorName”)} to get the page number of an object, but the number I get is always the last page number of the object, for example if object occupys three page 4-6, the number I get is always 6 not 4. Is there any thing I missed or is there any other method I can use? maybe "GetFirstAnchorPageNumber"?

Thank you.

NuWa
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: GetAnchorPageNumber

Post by Alex K. »

Hello,

Can you please send us your report with test data which reproduce the issue for analysis.

Thank you.
NuWa
Posts: 4
Joined: Thu Oct 17, 2013 3:20 pm

Re: GetAnchorPageNumber

Post by NuWa »

Following is a simple example, an object occupy page 2-10, when I use {GetAnchorPageNumber (sender.TagValue)} to get the page number, it returns 10, but I want it shows 2, how can I do it?

Thank you!
Attachments
test.xml
(9.55 KiB) Downloaded 322 times
Report.mrt
(13.55 KiB) Downloaded 296 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: GetAnchorPageNumber

Post by Alex K. »

Hello,

Thank you for the sample. We need some additional time for check the issue.
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Re: GetAnchorPageNumber

Post by Stephan1 »

Hi,

ist there any Solution for this.

We too need this feature to get the first Page of the Anchor not the last one.

Thx
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Re: GetAnchorPageNumber

Post by Stephan1 »

Hi,

i found a solution. Instead of using the "Rendering" event, iam now using "Begin Render".

thx
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: GetAnchorPageNumber

Post by Alex K. »

Hello,

Ok. Let us know if you need any additional help.
Post Reply