Page 1 of 1

Disable Connectors

Posted: Thu Aug 05, 2010 8:32 am
by IKRAM
hello
I wanted to disable display connectors OLEDB, SQL
ODBC connection and leave only the xml in the window "choose
type of connection "that appears after clicking the" New Connection ".
thanks.

Disable Connectors

Posted: Fri Aug 06, 2010 7:56 am
by Alex K.
Hello,

You can use next code:

Code: Select all

Stimulsoft.Base.Services.StiServiceContainer services = Stimulsoft.Report.StiConfig.Services.GetServices(
           typeof(Stimulsoft.Report.Dictionary.StiDatabase));
foreach (Stimulsoft.Base.Services.StiService service in services)
{
        if (service is Stimulsoft.Report.Dictionary.StiXmlDatabase) continue;
        service.ServiceEnabled = false;
}
Thank you.

Disable Connectors

Posted: Fri Aug 20, 2010 6:24 am
by IKRAM
Thank you very much.

Disable Connectors

Posted: Fri Aug 20, 2010 7:04 am
by Andrew
Have a nice day!