Creating Nested Bookmarks

Stimulsoft Reports.NET discussion
Post Reply
Rolf Brandes
Posts: 1
Joined: Thu Sep 10, 2009 10:33 am
Location: Vancouver

Creating Nested Bookmarks

Post by Rolf Brandes »

Hi all,

I'm relatively new to the product and this forum, but I'm impressed with both. I'm hoping you could help me solve a problem I have creating a tree of nested bookmarks.

My data is flat, meaning the hierarchy I want to display in the bookmark tree can't be created by master-detail databands but rather programatically by myself based on values in the data. I'm basing my code on the example in the documentation about creating bookmarks using code.

In the Bookmark-property of the databand I'm calling a custom function in which I'm doing two things:
- creating the bookmarks using Bookmark.Add(Title1) and Bookmark[Title1].Add(Title2), etc.
- returning the value of Title

This creates the actual bookmark tree with working links, but unfortunately it has an unwanted side effect. It creates the correct hierarchy (i.e. Title1 +--> Title2) but it also creates a separate bookmark node for Title2 on the top level of the bookmark tree. Both the top level and second level nodes take me to the same location in the document, but obviously I would like to hide the top level entry for the bookmark node and only display it on the second level under Title1.

I suspect it has something to do with the return value of my custom function that I call from the Bookmark-property for the databand. I am returning the value for Title, and in the case of Title2 I'm returning the value without the context of Title1. In other words, I'm adding a bookmark on the second level using Bookmark[Title1].Add(Title2) but because I am returning the value of Title2 to the Bookmark-property of the databand, it seems that it creates an entry for Title2 on the top level of the bookmark tree.

What am I doing wrong here? Should I return Title2 in the context of Title1 to the Bookmark-property of the databand somehow? How would I do that?

Thanks!

Rolf
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Creating Nested Bookmarks

Post by Andrew »

Hello,

Could you please send the sample of your application with data base to support@stimulsoft.com.

Thank you.
anl1973
Posts: 13
Joined: Tue Jan 17, 2012 11:43 am
Location: Wolfsburg, Germany

Re: Creating Nested Bookmarks

Post by anl1973 »

Hi,

I just came across the same issue. Were you able to solve it in 2009?
Could you please provide the solution description here?

Thx.
Andreas
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Creating Nested Bookmarks

Post by Alex K. »

Hello,

Can you please send us a sample report with test data which reproduces the issue for analysis.
Also please check the last version.

Thank you.
anl1973
Posts: 13
Joined: Tue Jan 17, 2012 11:43 am
Location: Wolfsburg, Germany

Re: Creating Nested Bookmarks

Post by anl1973 »

Hi,

just saw your message now (thought I would get an email notification...).
In the meantime I was able to get the bookmarks as wanted.
However, thx for your offer to help.

BR,
Andreas
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Creating Nested Bookmarks

Post by Alex K. »

Hello,

Ok.
Let us know if you need any additional help.
Post Reply