Replacing ConnectionString after loading
When I load a report file and before to load it in FR, I need to replace the ConnectionString value of the MsSqlDataConnection element at runtime.
I see that ConnectionString is encrypted. Can I replace it by a connection un-encrypted string? if not, how can I do it?
Thank you
I see that ConnectionString is encrypted. Can I replace it by a connection un-encrypted string? if not, how can I do it?
Thank you
Comments
You may use this code:
report.Load(...);
DataConnectionBase conn = report.Dictionary.Connections[0];
conn.ConnectionString = "your string";