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

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void frmDoanhThu_Load(object sender, EventArgs e)
        {
            CrystalReportDoanhThu rpt = new CrystalReportDoanhThu();

            crystalReportViewer1.ReportSource = rpt;
            rpt.SetDatabaseLogon("sa", "sa2012", @"WIN8_1", "QL_CAPHE");
            crystalReportViewer1.DisplayStatusBar = false;
            crystalReportViewer1.DisplayToolbar   = true;
            crystalReportViewer1.Refresh();
        }