Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReportHoaDon rpt = new ReportHoaDon();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void frmReportHoaDon_Load(object sender, EventArgs e)
        {
            ReportHoaDon rpt = new ReportHoaDon();

            crystalReportViewer1.ReportSource = rpt;
            rpt.SetDatabaseLogon("sa", "2711990812", "LAPTOP-QEFMSP0A\\SQLEXPRESS", "QL_NhaSach");
            crystalReportViewer1.DisplayStatusBar = false;
            crystalReportViewer1.DisplayToolbar   = true;
            crystalReportViewer1.Refresh();
        }