Hello,
I'm trying to create a table of content in my report using the Stimulsoft Reports.Web. I'm following the examples but I can't get it to work. I'm used to do this kind of reports (with ToC) in the .Net version of the Stimulsoft Reports and they work fine, however, in the web version I get the page 0 for each chapter.
I'm adding anchors in each relevant band in the report using "AddAnchor(Items.Code)" (Items is one of our elements), aftwerwards in the index/toc I'm adding the pages number using "GetAnchorPageNumber(Items.Code)" but I'm only getting 0 in the page number. This very same report used to work fine with the .net version but not with the web one. I'm setting the "Process At" property of the text field with the page number at "EndofReport" and also tested other values, anyway, is not working. Funny thing is that if I enter a constant instead of a variable for the anchor (for exampole AddAnchor("hello") it works fine... anyway, that's not an option as I need to dinamically generate those anchors
I'm not using hyperlinks or bookmarks, I just want to get the page numbers (the hyperlink will be fine of course, but let's go step by step)
Is there any kind of bug with this, Am I missing something?
AddAnchor/GetAnchorPageNumber
Re: AddAnchor/GetAnchorPageNumber
Hello.
Please, try to set the Process At property of the text component with page number to End of Report.
Thank you.
Please, try to set the Process At property of the text component with page number to End of Report.
Thank you.
Re: AddAnchor/GetAnchorPageNumber
Hi,
I've tried that (also ither values as the Default one) but same result, 0 in each one.
Thanks in advance
I've tried that (also ither values as the Default one) but same result, 0 in each one.
Thanks in advance
Re: AddAnchor/GetAnchorPageNumber
Hello,
Please, send your report and code which you use on asp.net web page for report rendering to the support@stimulsoft.com for analysis.
Also please add the link to this topic.
Thank you.
Please, send your report and code which you use on asp.net web page for report rendering to the support@stimulsoft.com for analysis.
Also please add the link to this topic.
Thank you.
-
- Posts: 4
- Joined: Fri May 10, 2019 8:11 am
Re: AddAnchor/GetAnchorPageNumber
hi,
We have a new requirement to show 4 different SKU in index page and need to set link to that SKU's. Kindly refer the screenshots.
How to add AddAnchor to single databand in Getbookmark event? Kindly advise.
We have a new requirement to show 4 different SKU in index page and need to set link to that SKU's. Kindly refer the screenshots.
How to add AddAnchor to single databand in Getbookmark event? Kindly advise.
- Attachments
-
- addanchor.jpg (27.48 KiB) Viewed 2406 times
-
- Posts: 7336
- Joined: Tue Mar 20, 2018 5:34 am
Re: AddAnchor/GetAnchorPageNumber
Hello,
Please check the following article:
https://www.stimulsoft.com/en/documenta ... ntents.htm
Thank you.
Please check the following article:
https://www.stimulsoft.com/en/documenta ... ntents.htm
Thank you.