Thumbnails Problem

Stimulsoft Reports.NET discussion
Post Reply
jellis
Posts: 22
Joined: Wed Jun 27, 2007 5:28 am
Location: United Kingdom

Thumbnails Problem

Post by jellis »

Hi,

If I preview my report in the designer, and click the Thumnails button on the toolbar, as expected I get a thumnail of each page.
If in my app I use

Me.stiPreview.BuildThumbs()
Me.stiPreview.InvokeThumbs()

I just get an empty thumbnail pane.

What am I doing wrong/not doing?

Thanks,

Jon.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Thumbnails Problem

Post by Edward »

Hello, Jellis.

Please call the following method of the StiPreviewControl instance:

Code: Select all

stiPreviewControl1.InvokeThumbs();
Thank you.
jellis
Posts: 22
Joined: Wed Jun 27, 2007 5:28 am
Location: United Kingdom

Thumbnails Problem

Post by jellis »

Thanks for the response Edward, but I am already doing that.
I basically have created my own preview form which hosts an stiPrviewControl and a toolbar (I have turned off the tool bar on the stiPreviewControl).
When a click the 'Thumbnails' button on my toolbar I make the following two calls inside a select case statement;


Code: Select all

Case "Bookmarks" : Me.stiPreview.BuildBookmarks() : Me.stiPreview.InvokeBookmarks()
The thumbs pane appears to the right of the stiPreview but has no thumbnails in it, it is completely empty.

Any thoughts?

Jon.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Thumbnails Problem

Post by Vital »

Hello,

We have check following code:

Code: Select all

stiPreviewControl1.BuildThumbs();
stiPreviewControl1.InvokeThumbs();
This code work fine. I think we don't take in consideration some settings. Can you send to support@stimulsoft.com sample project?

Thank you.
jellis
Posts: 22
Joined: Wed Jun 27, 2007 5:28 am
Location: United Kingdom

Thumbnails Problem

Post by jellis »

Hi Vital,

Sorry it took so so for me to get back to you. I now knwo what causes the problem, but how can I solve it?
My application does not use the Stimulsoft Toolbar - I have it turned off, and map calls from a Ribbon Style toolbar to the Stimulsoft functions.
If I set the ShowToolbar of the stiPreviewControl to false, when I click my ribbon toolbar button, I get no thumbs. If I set ShowToolbar to True, I get thumbs.
I can replicate simply by putting a stiPreview on a form, turning off the Toolbar & adding a command button to call the Thumbs.
I will send the project to support.

Regards,

Jon.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Thumbnails Problem

Post by Edward »

Hello, Jon.

Thank you for this information in detail. We are on the way of fixing this.

Thank you.
Post Reply