Preview Tab in Designer tools

Stimulsoft Reports.NET discussion
Post Reply
jing
Posts: 50
Joined: Fri Jan 26, 2007 12:47 am
Location: New Zealand

Preview Tab in Designer tools

Post by jing »

Hi,
I am trying to turn off some tools on top of the preview controller when previewing a report using the preview tab in the designer.
So far I have

Code: Select all

Dim s As New Stimulsoft.Report.Render.StiPreviewConfigService()
s.OpenEnabled = false
s.PageDeleteEnabled = false
s.PageNewEnabled = false
s.ShowThumbsPanel = false
But s.ShowThumbsPanel doesn't get rid of the "Thumbs Nail" tool and I can't find a method to get rid of the "bookMark" tool

Any help will be great
thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Preview Tab in Designer tools

Post by Edward »

jing wrote:I am trying to turn off some tools on top of the preview controller when previewing a report using the preview tab in the designer.
But s.ShowThumbsPanel doesn't get rid of the "Thumbs Nail" tool
Please correct your code as following:

Code: Select all

'Do this operation once when running the program
StiConfig.Load()
'Get service
Dim Config As StiPreviewConfigService = TryCast(StiConfig.Services.GetService(GetType(StiPreviewConfigService)), StiPreviewConfigService)

...

'Save configuration if necessary
StiConfig.Save()
jing wrote:I can't find a method to get rid of the "bookMark" tool
We will inform you in this topic when the solution will be ready.

Thank you.
Post Reply