Prevent Edit of Connection string
Posted: Fri Oct 17, 2025 8:46 am
In the report designer it is possible for the end user to edit the data connection string (ODBC) this is obviously a security risk as they can then see the login details etc.
In the web version I can prevent the end user from editing the connection string by doing this :
I have tried to do the same thing with my Windows program using this code that I found in another thread :
However, this doesn't prevent the end user from editing the connection string.
How do I achieve the same thing as the web application in making the data connection read only?
In the web version I can prevent the end user from editing the connection string by doing this :
Code: Select all
options.Dictionary.PermissionDataConnections = StiDesignerPermissions.View;Code: Select all
SelectedReport.SReport.Dictionary.Restrictions.Add("Cypher1", StiDataType.Database, StiRestrictionTypes.DenyEdit);
StiOptions.Designer.CodeTabVisible = false;How do I achieve the same thing as the web application in making the data connection read only?