Posted 22 November 2020, 2:14 pm ESTHi,
In .NET Core 3.1 project, I want to change the connection string of a Report, and also its Subreport(s), i found that i could use below code to overwriten the original one :
String connStrAR = "...myConnectionString"
rpt.Report.DataSources.DataSourceReference = "";
rpt.Report.DataSources.ConnectionProperties.DataProvider = "OLEDB";
rpt.Report.DataSources.ConnectionProperties.ConnectString = connStrAR;
But i also found that i cant change its subreport connection string.
How could i do it?