BLLCustomer blc = new BLLCustomer(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int custid =Convert.ToInt32(Request.QueryString["customerid"].ToString()); int addid =Convert.ToInt32( Request.QueryString["addressid"].ToString()); DataTable dt = blc.getAllByCustomerID(custid); ReportDocument rptdc = new ReportDocument(); rptdc.Load("C:\\Users\\Bishnu\\Documents\\Visual Studio 2008\\WebSites\\Assignment1\\CrystalReport.rpt"); rptdc.SetDataSource(dt); CrystalReportViewer1.Visible = true; CrystalReportViewer1.ReportSource = rptdc; } }
DataTable dt = blc.getAllByCustomerID(custid); ReportDocument rptdc = new ReportDocument(); rptdc.Load("C:\\Users\\Bishnu\\Documents\\Visual Studio 2008\\WebSites\\Assignment1\\CrystalReport.rpt"); rptdc.SetDataSource(dt); CrystalReportViewer1.Visible = true; CrystalReportViewer1.ReportSource = rptdc; CrystalReportViewer1.Refresh();//This line
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)