How to hide Service Configurator???

Stimulsoft Reports.NET discussion
Post Reply
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

How to hide Service Configurator???

Post by jayakumargr »

Hi,
I want to hide service configurator. (stireport 2007.1) (My concern have stireport2007.1 code)

How i do that ? (using stireport2007.1 source code)

Is there any possibility to hide service configurtor using .config file ?


Thanks in advance,
Jayakumar
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

How to hide Service Configurator???

Post by Guest »

Use this code:
StiToolsToolbarService tools = StiToolsToolbarService.GetService();

tools.ShowConfigurator = false;
Please see the sample "DesignerManagement".

Also you may to save your settings of disigner config file, with:
StiConfig.Save();
and load this settings later with:
StiConfig.Load();
Thank you.
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

How to hide Service Configurator???

Post by jayakumargr »

Hi,
i use following lines.

StiReport report = new StiReport();

StiToolsToolbarService tools = StiToolsToolbarService.GetService();

tools.ShowConfigurator = false;

report.Design();

It shows Following Error:

"Object reference not set to an instance of an object" (Null Reference Exception)

How to Solve it???


Thanks in Advance,
Jayakumar

Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

How to hide Service Configurator???

Post by Guest »

What version of StimulReport.Net you use? For version 2007.1 this code is worked.
Post Reply