public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            HoaDonReport rpt = new HoaDonReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        public frm_HoaDon(int idhoadon)
        {
            InitializeComponent();
            HoaDonReport rpt = new HoaDonReport();

            crystalReportViewer1.ReportSource = rpt;
            rpt.SetDatabaseLogon("sa", "sa2012", "DESKTOP-7SG3LH3\\SQLEXPRESS", "QLKaraoke");
            rpt.SetParameterValue("locHoaDon", idhoadon);
        }