In a cshtml file, I have the following piece of code:
Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
uriReportSource.Uri = "QuotationDetails.trdx";
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("CultureID", "fr"));
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("QuotationIDENT", "{{:CurrentQuotation.IDENT}}"));
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("UNUSED", 15));
uriReportSource.Parameters.Add(new Telerik.Reporting.Parameter("ReportsConnectionString", "{{:ReportsConnectionString}}"));
In th concerned trdx file, the SqlDataSource is currently set via:
<DataSources>
<SqlDataSource ConnectionString="REPORTS" SelectCommand="..." Name="REPORTS" ParameterValues="...">
<Parameters>
...
</SqlDataSourceParameter>
</Parameters>
</SqlDataSource>
</DataSources>
I would like to set the SqlDataSource ConnectionStringvalue to ReportsConnectionString, but I can't make it work.
Any idea ?
Best Regards,
Jean-Pierre Gervasoni