Bookmarks

Stimulsoft Reports.NET discussion
Post Reply
Surrounder
Posts: 1
Joined: Wed Sep 26, 2012 2:38 pm

Bookmarks

Post by Surrounder »

Hello,

I would like to create bookmarks by code. Thats why I added in the "Before Print" Event "Bookmark.Add( "Chapter" )
The bookmarks are created, but clicking on them nothing happens. If I create a pdf of my report I can see that there is no action set for the bookmarks.

If I create the bookmarks within the properties "Interaction.Bookmarks" everything is working fine and the action for the bookmark is set as expected.

What did I do wrong setting bookmarks by code? Is the event "Before Print" the correct one? Maybe the information for the action when clicking the bookmark is not available at this moment? Do I have to do anything else? I couldn´t find an example creating bookmarks by code.

Thanks for any adivce.

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

Re: Bookmarks

Post by Alex K. »

Hello,

The Bookmark.Add("Chapter") command only adds the bookmark to the tree, but this bookmark is not tied to anything. The anchor point is specified by the Bookmark property of the component, and the search is performed by this property.
Please specify why the "Interaction.Bookmarks" property of the component is not good for you?

Thank you.
Post Reply