コード例 #1
0
ファイル: RelatorioLucro.cs プロジェクト: Vcards01/CineField
        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;
        }