Bookmarks in Subreports

Stimulsoft Reports.NET discussion
Post Reply
alex
Posts: 3
Joined: Fri Feb 21, 2014 7:33 pm

Bookmarks in Subreports

Post 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);
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Bookmarks in Subreports

Post by HighAley »

Hello.

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

Thank you.
alex
Posts: 3
Joined: Fri Feb 21, 2014 7:33 pm

Re: Bookmarks in Subreports

Post 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);
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Bookmarks in Subreports

Post by HighAley »

Hello.

Please, try to enable the Bookmark panel with next button.
Bookmark.png
Bookmark.png (6.39 KiB) Viewed 1086 times
Thank you.
alex
Posts: 3
Joined: Fri Feb 21, 2014 7:33 pm

Re: Bookmarks in Subreports

Post 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 1084 times
Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Bookmarks in Subreports

Post 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.
Post Reply