Page 1 of 1

Bookmarks in Subreports

Posted: Fri Feb 21, 2014 7:37 pm
by alex
I have a report made of several sections (subreports). Is it possible to add a bookmark to the first page of each section?

Thanks

var mainReport = new StiReport();
...
foreach ...
mainReport.SubReports.Add(section);

Re: Bookmarks in Subreports

Posted: Mon Feb 24, 2014 12:27 pm
by HighAley
Hello.

You could just set the Bookmark property of the necessary components on the Subreports.

Thank you.

Re: Bookmarks in Subreports

Posted: Mon Feb 24, 2014 1:25 pm
by alex
Thanks for your help. Must be doing it wrong, it does not seem to work for me. No bookmarks show up in the joined report. Is this the correct way to set a bookmark in code?

section.Pages[0].Bookmark = new StiBookmarkExpression("A");
mainReport.SubReports.Add(section);

Re: Bookmarks in Subreports

Posted: Tue Feb 25, 2014 12:44 pm
by HighAley
Hello.

Please, try to enable the Bookmark panel with next button.
Bookmark.png
Bookmark.png (6.39 KiB) Viewed 1083 times
Thank you.

Re: Bookmarks in Subreports

Posted: Tue Feb 25, 2014 3:10 pm
by alex
Hello.

The bookmark panel is visible, my problem is that the bookmarks are not visible in the panel. I was expecting a bookmark for the first page of each section to appear.
screenshot.png
screenshot.png (12.05 KiB) Viewed 1081 times
Thanks

Re: Bookmarks in Subreports

Posted: Wed Feb 26, 2014 12:27 pm
by HighAley
Hello.

Sorry, but we couldn't reproduce your issue. We tried the same code and it works right.
Could you specify which version do you use?
Try the latest prerelease build.
If there still no bookmark, please, send us sample project that reproduces the issue.

Thank you.