Alternatively if you are using the ReportViewer Control in VS2005 you:
1. Reference the Microsoft.Reporting.WebForms namespace
2. Create a collection of ReportParameters
3. Create the individual paramenters
4. Pass the parameters to the SetParameters() function of the ReportViewer.
using Microsoft.Reporting.WebForms;
List
parms.Add(new ReportParameter(”CustomerID”, 1516));
ReportViewer1.ServerReport.SetParameters(parms);
2) “How to pass a Query String parameter to a Reporting Services Report”
Add the following code
protected void ReportViewer1_Load(object sender, EventArgs e)
{
List parms = new List();
parms.Add(new ReportParameter(”NIM”,Request.QueryString["NIM"]));
ReportViewer1.LocalReport.SetParameters(parms);
}
but u get this error
An error has occurred during report processing.
ObjectDataSource ‘ObjectDataSource1′ could not find a non-generic method ‘GetMasterNilaiByNIM’ that has no parameters
No comments:
Post a Comment