I know we have a few programmers here so I thought maybe one of you could help with this.
Dim P(1) As ReportParameter
P(0) = New ReportParameter("Customer", TextBox1.Text.Trim, True)
P(1) = New ReportParameter("Style", TextBox2.Text.Trim, True)
ReportViewer1.LocalReport.SetParameters(New ReportParameter() {P(0), P(1)})
I can't figure out why I'm getting
Unable to cast object of type 'Microsoft.Reporting.WebForms.ReportParameter[]' to type 'System.Collections.Generic.IEnumerable`1[Microsoft.Reporting.WinForms.ReportParameter]'
on execution of line 4. I tried every variance of that code I could think of for building the parameters array but it just doesn't work.