Disable New Datasource Button in Wizard

Stimulsoft Reports.NET discussion
Post Reply
AndyDroid
Posts: 24
Joined: Mon Nov 28, 2011 1:23 pm

Disable New Datasource Button in Wizard

Post by AndyDroid »

Hi!

I have 2 questions...


is it possible disable new data source button in wizard window?



And... can i disable a specific type of report in wizard window?


thanks
:biggrin:
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Disable New Datasource Button in Wizard

Post by Alex K. »

Hello,
AndyDroid wrote:is it possible disable new data source button in wizard window?
Unfortunately, it is impossible.
AndyDroid wrote:And... can i disable a specific type of report in wizard window?
We made some improvements in that direction
Please check the latest build when it will be available.

Code: Select all

 StiServiceContainer wizards = StiConfig.Services.GetServices(typeof(StiWizardService));
            foreach (StiWizardService service in wizards)
            {
                if (service is StiLabelWizardService || service is StiMasterDetailWizardService)
                    service.ServiceEnabled = false;
                else
                    service.ServiceEnabled = true;
            }
Thank you.
Post Reply