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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void NRB()
        {
            IPOReportBAL bal = new IPOReportBAL();
            DataTable    dt  = new DataTable();

            dt = bal.GetNRBSuccessfulUnsuccessful(cmbStatusName.Text, Cmbcompanyname.Text, CmbCustomerCode.Text);
            crNrbSuccessfulUnsuccessful nrb    = new crNrbSuccessfulUnsuccessful();
            frmIPOReportViewer          viewer = new frmIPOReportViewer();

            nrb.SetDataSource(dt);

            //GetCommonInfo();
            //((TextObject)nrb.ReportDefinition.Sections[2].ReportObjects["txtCompanyName"]).Text =
            //    _CommpanyName;
            /////// Load Branch Name
            //((TextObject)nrb.ReportDefinition.Sections[2].ReportObjects["txtBranchName"]).Text =
            //    "Branch Name:" + _branchName + "," + _branchAddress + ". Phone:" + _branchContactNumber;
            viewer.crystalReportViewer1.ReportSource = nrb;
            viewer.Show();
        }