Page Numbers with variables as anchors - not quite right

Stimulsoft Reports.WEB discussion
Post Reply
JHenn
Posts: 20
Joined: Fri Jun 01, 2018 9:23 pm

Page Numbers with variables as anchors - not quite right

Post by JHenn »

If I have different page definitions and hard-code the anchors for each page definition, the resulting Table of Contents is fine. I've tried extending that logic to a single page report definition with "new page before" each primary group heading; and with setting the anchor to the current variable value (AddAnchor(Dataset.Div_Name);) and taking care to call the page number value at the right time ({GetAnchorPageNumber(Dataset.Div_Name)}, Process at End of Report); but those numbers are not quite right, though they are close.
I noted that your closest demo report (https://demo.stimulsoft.com/#Net/BookmarksAndHyperlinks) doesn't show page numbers. Would the anchor logic work there for page numbers based on variables, or is there a reason why that example does not have page numbers? (I tried to test it out but was not able to.) Thank you.
Judy Hennessey / PrecisionBI
Lech Kulikowski
Posts: 7334
Joined: Tue Mar 20, 2018 5:34 am

Re: Page Numbers with variables as anchors - not quite right

Post by Lech Kulikowski »

Hello,

Please try to use the new component - Table of Contents which was added in the last release:
https://www.stimulsoft.com/en/blog/news ... 1-released

Thank you.
JHenn
Posts: 20
Joined: Fri Jun 01, 2018 9:23 pm

Re: Page Numbers with variables as anchors - not quite right

Post by JHenn »

Thank you for the prompt reply. That will be a welcome feature.
Judy Hennessey / PrecisionBI
Lech Kulikowski
Posts: 7334
Joined: Tue Mar 20, 2018 5:34 am

Re: Page Numbers with variables as anchors - not quite right

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply