public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crIPONRBReportToDesc rpt = new crIPONRBReportToDesc(); rpt.Site = this.Site; return(rpt); }
private void btnShowReport_Click(object sender, EventArgs e) { if (cmbrbNrb.Text == "RB") { name = txtName.Text; SessionID = Convert.ToInt32(cmbShortCodeAndsessionID.SelectedValue); dt = R_Bal.GetIPOSubmissionOfIPOcollectionFile_Hardcopy_And_Softcopy(SessionID, name, cmbrbNrb.Text, ""); crIPOSubmissionOfIPOcollectionFile_Hardcopy_And_Softcopy crobj = new crIPOSubmissionOfIPOcollectionFile_Hardcopy_And_Softcopy(); frmReportViewer view = new frmReportViewer(); crobj.SetDataSource(dt); view.crvReportViewer.ReportSource = crobj; view.Show(); } else if (cmbrbNrb.Text == "NRB") { name = txtName.Text; SessionID = Convert.ToInt32(cmbShortCodeAndsessionID.SelectedValue); dt = R_Bal.GetIPOSubmissionOfIPOcollectionFile_Hardcopy_And_Softcopy(SessionID, name, cmbrbNrb.Text, ""); crIPONRBReportToDesc crobj = new crIPONRBReportToDesc(); frmReportViewer view = new frmReportViewer(); crobj.SetDataSource(dt); view.crvReportViewer.ReportSource = crobj; view.Show(); } }