AddAnchor/GetAnchorPageNumber
Posted: Thu Feb 11, 2016 9:03 am
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?
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?