report for asp.net web site
-
Monday, August 20, 2012 8:09 PM
hello
i making a report in visual studio 2010 .
and making report in asp.net web site .
i am grting a problem in report parameter setting .
here is my code :
Private Sub setparameters()
Dim clientname As New ReportParameter("ReportParameter_client_name", name, Visible)
Dim accountcode As New ReportParameter("ReportParameter_accountcode", code, Visible)
ReportViewer1.LocalReport.SetParameters(New ReportParameter() {clientname, accountcode})
ReportViewer1.LocalReport.Refresh()
End Suband call this in a button click event.
Protected Sub Button_name_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button_name.Click
name = TextBox_name.Text
code = TextBox_code.Text
setparameters()
End Subpassig parameter from textboxes
i get error on this line:
ReportViewer1.LocalReport.SetParameters(New ReportParameter() {clientname, accountcode})
the error is :
localprocessingexception was unhandled by user code
thanks.
All Replies
-
Tuesday, August 21, 2012 8:54 PMHi - This could be either because there no parameter with the name you are using or datatype mismatch. There could be other issues but I would start from these 2 first.
MkMahesh

