Bookmarks with AmountOfQuickAccessPages

Stimulsoft Reports.NET discussion
jplaberge
Posts: 15
Joined: Wed Dec 03, 2014 9:51 pm

Bookmarks with AmountOfQuickAccessPages

Post by jplaberge »

Hi,

First I would like to thank you to fix the out of memory problems we were having with images. Your solution work great when using ReportCacheMode
However, I am having a problem with bookmarks in this mode. It seems that when AmountOfQuickAccessPages is set to a low number, when we click on a bookmark, it doesn't move to the correct page.

To reproduce, I am using the the latest build Stimulsoft Reports.Ultimate 2015.01.24 but I could reproduce it also with a lower build.

I have a sample application with bookmarks numbered 001 to 050. You will see the problem when clicking on any bookmark. If you comment out the line
StiOptions.Engine.ReportCache.AmountOfQuickAccessPages = 5, the bookmarks will work as expected.

Also, I have a question regarding the folders

StimulsoftImageCache
StimulsoftMatrixCache
StimulsoftReportsCache

When are they deleted ? They seem to keep growing and I would expect to be emptied when closing the report viewer. Or is there a method I should call ?

Thank you
Attachments
StimulsoftImagesTest4.zip
(1.62 MiB) Downloaded 286 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Bookmarks with AmountOfQuickAccessPages

Post by HighAley »

Hello.

We have reproduced the issue with Bookmarks. We need some additional time for analyzing.

About report cache files. The cache file is removed in the Dispose method. Sometimes the method is not called by .Net Framework. Sometime it's impossible to know when the report should be disposed.
You could call Dispose method in your code.

Thank you.
jplaberge
Posts: 15
Joined: Wed Dec 03, 2014 9:51 pm

Re: Bookmarks with AmountOfQuickAccessPages

Post by jplaberge »

Hi,

Have you been able to analyze the issue with bookmarks ?


Thank you
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Bookmarks with AmountOfQuickAccessPages

Post by HighAley »

Hello.

We have fixed the issue. Please, check our next prerelease build that will be available on February 13.

Thank you.
jplaberge
Posts: 15
Joined: Wed Dec 03, 2014 9:51 pm

Re: Bookmarks with AmountOfQuickAccessPages

Post by jplaberge »

Hi,

I tried using the release Version: 2014.3.9 from 13 February 2015.
Unfortunately, using the sample application I provided, I get the exception window when clicking on the root node "Report" of the bookmark tree:

Key cannot be null.
Parameter name: key

at System.Collections.Hashtable.get_Item(Object key)
at Stimulsoft.Report.Viewer.StiViewerControl.FindComponentInHash(StiBookmark bookmark)
at Stimulsoft.Report.Viewer.StiViewerControl.tvBookmarks_AfterSelect(Object sender, TreeViewEventArgs e)


Also, when using nested bookmarks (not in the sample I created, but I could create one if you need it), I get the same error when I click on a node that is not a child node.
And when I export to PDF, these nested bookmarks don't work at all.

We are rushing to release our software very soon, so it is critical that all issues around reports are fixed and we cannot wait 1 more week for another build until we can test. Can we ask for a build as soon as these issues are solved ?

Thank you
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Bookmarks with AmountOfQuickAccessPages

Post by HighAley »

Hello, jplaberge.
jplaberge wrote:I tried using the release Version: 2014.3.9 from 13 February 2015.
Unfortunately, using the sample application I provided, I get the exception window when clicking on the root node "Report" of the bookmark tree:
We have fixed the issue.
jplaberge wrote:Also, when using nested bookmarks (not in the sample I created, but I could create one if you need it), I get the same error when I click on a node that is not a child node.
And when I export to PDF, these nested bookmarks don't work at all.
Sorry, we can not reproduce the issue. Could you send us a sample with more detailed intructions?
jplaberge wrote:We are rushing to release our software very soon, so it is critical that all issues around reports are fixed and we cannot wait 1 more week for another build until we can test. Can we ask for a build as soon as these issues are solved ?
After we will fix your second issue we can prepare a build for you if you send a request to support@stimulsoft.com.

Thank you.
jplaberge
Posts: 15
Joined: Wed Dec 03, 2014 9:51 pm

Re: Bookmarks with AmountOfQuickAccessPages

Post by jplaberge »

Hi,

I updated the sample project to add the column "ImageCategory". The first text field of the report has a nested bookmark "%\{DataObject.ImageCategory}\{DataObject.ImageId}"
So there will be Categories 0, 1, 2, 3, 4 with 10 images in each category. When I click on a category, the same exception that you fixed appears. I would expect to move to the first image of the category.

When I export the report to PDF, the bookmarks don't do anything.


Thank you
Attachments
StimulsoftImagesTest5.zip
(1.62 MiB) Downloaded 287 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Bookmarks with AmountOfQuickAccessPages

Post by HighAley »

Hello.

But there is no Bookmark with 'Category 0' and etc. values.
This scenario will work if you add a Group Header with bookmark as in the attached report template.
ImagesTestReport.mrt
(7.63 KiB) Downloaded 382 times
Thank you.
jplaberge
Posts: 15
Joined: Wed Dec 03, 2014 9:51 pm

Re: Bookmarks with AmountOfQuickAccessPages

Post by jplaberge »

Hi,

You removed the %\ from my bookmark. What I wanted to accomplish is to create bookmarks using expressions as defined in the user manual without having to create groups. I don't want to create groups because in my reports the data is sorted dynamically based on the user's choice and is not necessarily the same hierarchy as the bookmarks.

Do you mean that such bookmarks are not supported when exporting to PDF files and it's not a bug ? Because these bookmarks don't do anything in the PDF file (although they work correctly using the Stimulsoft viewer). Bookmarks with groups and not using expressions work correctly when exporting to PDF, however. And you fixed the exceptions I was having in the latest build.

Thank you
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Bookmarks with AmountOfQuickAccessPages

Post by Ivan »

Hello, jplaberge.
jplaberge wrote:You removed the %\ from my bookmark. What I wanted to accomplish is to create bookmarks using expressions as defined in the user manual without having to create groups. I don't want to create groups because in my reports the data is sorted dynamically based on the user's choice and is not necessarily the same hierarchy as the bookmarks.
As another simple workaround, please modify your initial report template: add expression {DataObject.ImageCategory} to the Bookmark property of the DataBand1.
Now bookmarks "Categories 0" and etc. will work correctly
jplaberge wrote:Do you mean that such bookmarks are not supported when exporting to PDF files and it's not a bug ? Because these bookmarks don't do anything in the PDF file (although they work correctly using the Stimulsoft viewer).
We couldn't reproduce this issue.
In your sample all bookmarks in the PDF file work correctly, as well as in the viewer.

Thank you.
Post Reply