I'm using the Designer Control embedded into a window.
When I run the window I create a new report and attach it to the Designer Control using the stiReport component.
I want to turn off the Code panel when I run the window.
I searched the forum and it seems it is done through stiOptions (as a lot of this type of things are done).
My question is what is stiOptions i.e. I don't have a component called stiOptions?
Probably an obvious question but obviously I'm missing something (first day playing with this 'stuff').
TIA
stiOptions
-
- Posts: 4
- Joined: Tue Jun 30, 2009 4:02 am
stiOptions
Hi,lancashireuser wrote:I'm using the Designer Control embedded into a window.
When I run the window I create a new report and attach it to the Designer Control using the stiReport component.
I want to turn off the Code panel when I run the window.
I searched the forum and it seems it is done through stiOptions (as a lot of this type of things are done).
My question is what is stiOptions i.e. I don't have a component called stiOptions?
Probably an obvious question but obviously I'm missing something (first day playing with this 'stuff').
TIA
have you tried this ?
StiMainMenuService mainMenuService = StiMainMenuService.GetService(stiDesigner);
StiOptions.Designer.CodeTabVisible = false;
or
Stimulsoft.Report.StiOptions.Designer.CodeTabVisible = false
Cheers
Stephan
-
- Posts: 4
- Joined: Tue Jun 30, 2009 4:02 am
stiOptions
Thanks for the reply.Stephan1 wrote:Hi,lancashireuser wrote:I'm using the Designer Control embedded into a window.
When I run the window I create a new report and attach it to the Designer Control using the stiReport component.
I want to turn off the Code panel when I run the window.
I searched the forum and it seems it is done through stiOptions (as a lot of this type of things are done).
My question is what is stiOptions i.e. I don't have a component called stiOptions?
Probably an obvious question but obviously I'm missing something (first day playing with this 'stuff').
TIA
have you tried this ?
StiMainMenuService mainMenuService = StiMainMenuService.GetService(stiDesigner);
StiOptions.Designer.CodeTabVisible = false;
or
Stimulsoft.Report.StiOptions.Designer.CodeTabVisible = false
Cheers
Stephan
In the language I'm using I needed: -
Stimulsoft.Report.StiOptions.Designer:CodeTabVisible = false
But your answer got me 99% there.....Thanks again for the quick reply.