public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { cr_IPOAuthorizePersonDeclaration rpt = new cr_IPOAuthorizePersonDeclaration(); rpt.Site = this.Site; return(rpt); }
private void btnAuthorized_Click(object sender, EventArgs e) { SessionID = Convert.ToInt32(cmbShortCodeAndsessionID.SelectedValue); dt = R_Bal.GetIPOSubmissionOfIPOcollectionFile_Hardcopy_And_Softcopy(SessionID, name, cmbrbNrb.Text, btnAuthorized.Text); cr_IPOAuthorizePersonDeclaration crobj = new cr_IPOAuthorizePersonDeclaration(); frmReportViewer view = new frmReportViewer(); crobj.SetDataSource(dt); view.crvReportViewer.ReportSource = crobj; view.Show(); }