Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            RelatorioFilme rpt = new RelatorioFilme();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void FormRelatorioFilme_Load(object sender, EventArgs e)
        {
            FilmeDAO       dao    = new FilmeDAO();
            List <Filme>   list   = dao.ListAll();
            RelatorioFilme report = new RelatorioFilme();

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