limiting the possible save options
Posted: Wed Sep 09, 2009 10:40 am
We show a report via an C# application. There are to many options to save the report in, so we want to limit this.
I could find something ablout a configuration file. So I have done something like this
For some raeson it's is still possible to save the report as an PDF. I think this has to do with the fact that our mrt-file isn't connected to the cofiguration file. I have no idea how to do this and/or this is the rhight way to limit the save options ...
So if anyone has thoughts about this, please provide some feedback.
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.