Hi,
I use a custom IReportResolver in combination with the ReportConnectionStringManager and it works well. However my next requirement is to support subreports where the ReportSource property is set to a parameter, e.g. = Parameters.invoiceReport.Value. This is a problem when attempting to update the connection string on the subreport, the name is given as the expression, not the evaluation of the expression. It seems that I can evaluate the expression myself with a bit of work and checking the Http context request referrerUrl property, but looks a bit fragile.
If you look at the code for ReportConnectionStringManager you can see that it assumes here:
using
(var xmlReader = System.Xml.XmlReader.Create(uriReportSource.Uri, settings))
that the Uri is already evaluated, but it's not, it is the string "= Parameters.invoiceReport.Value". Do you have any suggestions other than evaluating the expression myself?
Thanks,