Page Numbers with variables as anchors - not quite right
Posted: Thu Jan 28, 2021 9:30 pm
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.
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.