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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void btnshow_Click(object sender, EventArgs e)
        {
            crClient_Today_Sale_Info objRPT        = new crClient_Today_Sale_Info();
            frmPaymenrReportViewer   paymentViewer = new frmPaymenrReportViewer();
            DataTable dt = new DataTable();

            dt = objBAL.Client_Today_Sale(dtpTradeDate.Value);
            objRPT.SetDataSource(dt);
            ((TextObject)objRPT.ReportDefinition.Sections[2].ReportObjects["txtCompanyName"]).Text = _CommpanyName;
            ((TextObject)objRPT.ReportDefinition.Sections[2].ReportObjects["txtAddress"]).Text     = _branchName + "," + _branchAddress + ",Phone: " + _branchContactNumber;
            ((TextObject)objRPT.ReportDefinition.Sections[2].ReportObjects["txtTradeDate"]).Text   = dtpTradeDate.Value.ToString("dd-MMM-yyyy");
            paymentViewer.crvPaymentReview.ReportSource = objRPT;
            paymentViewer.Show();
        }