Page 1 of 1

Page Numbers with variables as anchors - not quite right

Posted: Thu Jan 28, 2021 9:30 pm
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.

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

Posted: Mon Feb 01, 2021 8:50 pm
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.

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

Posted: Tue Feb 02, 2021 7:16 pm
by JHenn
Thank you for the prompt reply. That will be a welcome feature.

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

Posted: Tue Feb 02, 2021 8:25 pm
by Lech Kulikowski
Hello,

You are welcome.