Page 1 of 1

stiOptions

Posted: Tue Jun 30, 2009 6:25 am
by lancashireuser
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

Posted: Tue Jun 30, 2009 6:48 am
by Stephan1
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
Hi,

have you tried this ?

StiMainMenuService mainMenuService = StiMainMenuService.GetService(stiDesigner);
StiOptions.Designer.CodeTabVisible = false;

or

Stimulsoft.Report.StiOptions.Designer.CodeTabVisible = false


Cheers

Stephan

stiOptions

Posted: Tue Jun 30, 2009 8:14 am
by lancashireuser
Stephan1 wrote:
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
Hi,

have you tried this ?

StiMainMenuService mainMenuService = StiMainMenuService.GetService(stiDesigner);
StiOptions.Designer.CodeTabVisible = false;

or

Stimulsoft.Report.StiOptions.Designer.CodeTabVisible = false


Cheers

Stephan
Thanks for the reply.

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.