Page 1 of 1

Preview Tab in Designer tools

Posted: Wed Feb 07, 2007 7:50 pm
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

Preview Tab in Designer tools

Posted: Thu Feb 08, 2007 2:39 am
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.