Hmmm... Okay. Thanks for the reply. I'm hoping someone out there has it in C#. It appears that there are a couple of differences in the v9 version of ReportViewer that are giving me headaches. For example, there doesn't appear to be a ParameterControl object in the WebForms anymore and I'm also having some difficulties in the GetPropertyValue method with an "object reference not set to an instance of an object." If you have c# experience I'd be more than happy to have you look at the code and let me know what you see. Here's what I have for both those:
public Type _ParameterControlType;_ParameterControlType = Assembly.GetAssembly(this.EdgeReportViewer.GetType()).GetType("Microsoft.Reporting.WebForms.ReportParameter");
The above at least compiles, but I don't think it's getting the same type reference since I'm looking at ReportParameter and not ParameterControl (which seems to have disappeared from the WebForms object).
This is what it looks like using most of the same code from the example (the change is to the reportviewer instance rather than the class itself)
//_ParameterControlType = Assembly.GetAssembly(this.EdgeReportViewer.GetType()).GetType("Microsoft.Reporting.WebForms.ParameterControl");The method that's problematic is:publicObject GetPropertyValue(Object target,String propertyName)
{return target.GetType().GetProperty(propertyName, BindingFlags.IgnoreCase |BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public).GetValue(target,null);}It generates the error when evaluating the Instance BindingFlag.
Any suggestions would be greatfully accepted. As with most projects, this is a yesterday kind of deadline.
Thanks for any help!
Larry