01.
using
Microsoft.VisualBasic;
02.
using
System;
03.
using
System.Collections;
04.
using
System.Collections.Generic;
05.
using
System.Data;
06.
using
System.Diagnostics;
07.
using
CrystalDecisions.CrystalReports.Engine;
08.
public
partial
class
_Default : System.Web.UI.Page
09.
{
10.
protected
void
Page_Load(
object
sender, System.EventArgs e)
11.
{
12.
}
13.
14.
protected
void
btnShowReport_Click(
object
sender, EventArgs e)
15.
{
16.
ReportDocument rpt =
new
ReportDocument();
17.
rpt.Load(Server.MapPath(
"CrystalReport1.rpt"
));
18.
rpt.SetParameterValue(
"CustomerID"
,
this
.txtCustomerID.Text);
19.
this
.CrystalReportViewer1.ReportSource = rpt;
20.
}
21.
}