示例#1
0
 public void viewPhieuNhap(DataTable dt)
 {
     CrystalReportPhieuNhap objRpt = new CrystalReportPhieuNhap();
     objRpt.SetDataSource(dt);
     //objRpt.SetParameterValue("Nhân Viên", "N/A");
     objRpt.SetParameterValue("DienThoai", Auth.logged.Ten);
     crystalReportViewer1.ReportSource = objRpt;
     crystalReportViewer1.Refresh();
     this.Show();
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     CrystalReportPhieuNhap rpt = new CrystalReportPhieuNhap();
     rpt.Site = this.Site;
     return rpt;
 }