I could find something ablout a configuration file. So I have done something like this
Code: Select all
StiConfig.Load("..\\..\\report_config.Config");
StiServiceContainer Services = (StiServiceContainer)StiConfig.Services.GetServices(typeof(StiExportService));
foreach (StiService Service in Services)
{
if (Service is StiPdfExportService)
{
Service.ServiceEnabled = false;
}
}
StiConfig.Save();
So if anyone has thoughts about this, please provide some feedback.