using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CrystalDecisions.CrystalReports.Engine;
public partial class print_addjifen : System.Web.UI.Page
{
ReportDocument doc = new ReportDocument();
protected void Page_Load(object sender, EventArgs e)
{
string key = Request.QueryString["key"];
string key2 = Request.QueryString["key2"];
doc.Load(Server.MapPath("CrystalReport.rpt"));//
TextObject text4 = (TextObject)doc.ReportDefinition.ReportObjects["text4"];
TextObject text5 = (TextObject)doc.ReportDefinition.ReportObjects["text5"];
text4.Text = key;
text5.Text = key2;
this.CrystalReportViewer1.ReportSource = doc;
}
protected void Page_UnLoad(object sender, EventArgs e)
{
if (doc != null)
{
doc.Dispose();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CrystalDecisions.CrystalReports.Engine;
public partial class print_addjifen : System.Web.UI.Page
{
ReportDocument doc = new ReportDocument();
protected void Page_Load(object sender, EventArgs e)
{
string key = Request.QueryString["key"];
string key2 = Request.QueryString["key2"];
doc.Load(Server.MapPath("CrystalReport.rpt"));//
TextObject text4 = (TextObject)doc.ReportDefinition.ReportObjects["text4"];
TextObject text5 = (TextObject)doc.ReportDefinition.ReportObjects["text5"];
text4.Text = key;
text5.Text = key2;
this.CrystalReportViewer1.ReportSource = doc;
}
protected void Page_UnLoad(object sender, EventArgs e)
{
if (doc != null)
{
doc.Dispose();
}
}
}