Report Create & Particular Control Pass Methods Already Use Below Links
http://screenshotdrizzles.blogspot.in/2014/10/how-to-pass-parameter-to-rdlc-report-or.html
http://screenshotdrizzles.blogspot.in/2014/10/how-to-pass-particular-control-id.html
Now Pass Without Database Values To Report.rdlc Report.
C# Coding
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;
public partial class reports : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string date1 = "22/10/2014";
string name = "Drizzles";
ReportParameter rpt1 = new ReportParameter("id", "1");
ReportParameter rpt2 = new ReportParameter("date", date1.ToString());
ReportParameter rpt3 = new ReportParameter("name", name.ToString());
this.ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rpt1, rpt2, rpt3 });
this.ReportViewer1.LocalReport.Refresh();
}
}
}
0 comments:
Post a Comment