Esempio n. 1
0
        public void viewHoaDon(DataTable dt)
        {
            CrystalReportHoaDon objRpt = new CrystalReportHoaDon();
            objRpt.SetDataSource(dt);

            //objRpt.SetParameterValue("TenNhaSach", QuiDinhBUS.LayGiaTri("TenNhaSach"));
            //objRpt.SetParameterValue("DiaChi", QuiDinhBUS.LayGiaTri("DiaChi"));
            //objRpt.SetParameterValue("Email", QuiDinhBUS.LayGiaTri("Email"));
            //objRpt.SetParameterValue("DienThoai", QuiDinhBUS.LayGiaTri("DienThoai"));
            //objRpt.SetParameterValue("Website", QuiDinhBUS.LayGiaTri("Website"));

            objRpt.SetParameterValue("TenNhaSach", "BookStoreM1.0");
            objRpt.SetParameterValue("DiaChi", "Đại chỉ: UIT");
            objRpt.SetParameterValue("Email", "N/A");
            objRpt.SetParameterValue("DienThoai", "N/A");
            objRpt.SetParameterValue("Website", "N/A");
            crystalReportViewer1.ReportSource = objRpt;
            crystalReportViewer1.Refresh();
            this.Show();
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     CrystalReportHoaDon rpt = new CrystalReportHoaDon();
     rpt.Site = this.Site;
     return rpt;
 }