public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { RelatorioLucro rpt = new RelatorioLucro(); rpt.Site = this.Site; return(rpt); }
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; }