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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void ShowReport()
        {
            ZgroupBuySellReportBAL objBAL    = new ZgroupBuySellReportBAL();
            DataTable              data      = new DataTable();
            frmReportViewer        rptviewer = new frmReportViewer();
            crZ_groupBuySellReport objrpt    = new crZ_groupBuySellReport();
            int zgroupId;

            zgroupId = objBAL.GetZgroupCompanyId();
            data     = objBAL.GetZgroupShareBuySellReport(zgroupId, dtpStartDate.Value, dtpEndDate.Value);
            objrpt.SetDataSource(data);
            ((TextObject)objrpt.Section2.ReportObjects["txtFromDate"]).Text = dtpStartDate.Value.ToString("dd/MM/yyyy");
            ((TextObject)objrpt.Section2.ReportObjects["txtToDate"]).Text   = dtpEndDate.Value.ToString("dd/MM/yyyy");
            rptviewer.crvReportViewer.ReportSource = objrpt;
            rptviewer.Text = "Z-group share Buy/Sell Report";
            rptviewer.Show();
        }