예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            RelatorioLucro rpt = new RelatorioLucro();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        private void FormRelatorioLucro_Load(object sender, EventArgs e)
        {
            CaixaDAO       dao    = new CaixaDAO();
            List <Caixa>   list   = dao.ListAll();
            RelatorioLucro report = new RelatorioLucro();

            report.SetDataSource(list);
            crystalReportViewer1.ReportSource = report;
        }