示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportCTHD rpt = new CrystalReportCTHD();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
 private void MyCrystalCTHD_Load(object sender, EventArgs e)
 {
     try
     {
         CrystalReportCTHD cry = new CrystalReportCTHD();
         crystalReportViewer1.ReportSource = cry;
         cry.SetDatabaseLogon("sa", "len123", "BACHUTHEGIOI\\SQLEXPRESS", "ql_canho");
         cry.SetParameterValue("LocMaHD", m);
         crystalReportViewer1.DisplayStatusBar = false;
         crystalReportViewer1.DisplayToolbar   = true;
         crystalReportViewer1.Refresh();
     }
     catch
     {
         MessageBox.Show("Không có Report Này!");
         this.Close();
     }
 }