I have translated in VB the above code:
Code: Select all
Dim services As Stimulsoft.Base.Services.StiServiceContainer = Stimulsoft.Report.StiConfig.Services.GetServices(GetType(Stimulsoft.Report.SaveLoad.StiDocumentSLService))
For Each service As Stimulsoft.Base.Services.StiService In services
If service Is Stimulsoft.Report.SaveLoad.StiXmlDocumentSLService Then
service.ServiceEnabled = False
End If
Next
But in the row:
Code: Select all
If service Is Stimulsoft.Report.SaveLoad.StiXmlDocumentSLService Then
the editor gives the following error:
"StiXmlDocumentSLService is a type in SaveLoad and cannot be used as an espression".
Actually i have solved using the following code instead of the offending line:
Code: Select all
If service.ServiceName.ToLower = "stixmldocumentslservice" Then
but, of course, i don't like it too much.
May you help me?
Thanks.