public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            DailyEntriesAuditRPT rpt = new DailyEntriesAuditRPT();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void btnDailyEntriesAudit_Click(object sender, EventArgs e)
        {
            DataSet dsDivisionReport = new DataSet();

            dsDivisionReport = myReports.getDailyEntriesAudit(dtpFromDate.Value.Date, dtpToDate.Value.Date);
            dsDivisionReport.WriteXml("DailyEntriesAudit.xml");

            DailyEntriesAuditRPT objReport = new DailyEntriesAuditRPT();

            objReport.SetDataSource(dsDivisionReport);
            ReportViewerForm objReportViewer = new ReportViewerForm();

            objReport.SetParameterValue("Estate", myEstate.ListEstates().Rows[0][0].ToString());
            objReport.SetParameterValue("CompanyName", FTSPayRollBL.Company.getCompanyName());
            objReportViewer.crystalReportViewer1.ReportSource = objReport;
            objReportViewer.Show();
        }