stiOptions

Stimulsoft Reports.NET discussion
Post Reply
lancashireuser
Posts: 4
Joined: Tue Jun 30, 2009 4:02 am

stiOptions

Post 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
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

stiOptions

Post 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
lancashireuser
Posts: 4
Joined: Tue Jun 30, 2009 4:02 am

stiOptions

Post 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.
Post Reply