Exemplo n.º 1
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     rpChiTietThietBi rpt = new rpChiTietThietBi();
     rpt.Site = this.Site;
     return rpt;
 }
Exemplo n.º 2
0
 private void btnThietBiPhong_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     //ReportDocument cryRpt = new ReportDocument();
     //string[] _str = Application.StartupPath.Split('\\');
     //string path = String.Join("\\", _str.Take(_str.Count() - 2).ToArray());
     //cryRpt.Load(path + @"\Report\rpChiTietThietBi.rpt");
     //crv.ReportSource = cryRpt;
     //cryRpt.Refresh();
     //crv.Refresh();
     var rp = new Report.rpChiTietThietBi();
     CrystalDecisions.Shared.TableLogOnInfo info;
     info = rp.Database.Tables[0].LogOnInfo;
     info.ConnectionInfo.ServerName = "192.168.1.39";
     info.ConnectionInfo.DatabaseName = "QLKS";
     rp.Database.Tables[0].ApplyLogOnInfo(info);
     rp.ReportOptions.EnableSaveDataWithReport = false;
     crv.ReportSource = rp;
 }