public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crIPOForwardingLetterAfterResult rpt = new crIPOForwardingLetterAfterResult(); rpt.Site = this.Site; return(rpt); }
private void btnShowReport_Click(object sender, EventArgs e) { DataTable dt = new DataTable(); string App_ID = txtAppliationNo.Text; int Session_Id = Convert.ToInt32(cmbSessionName.SelectedValue); crIPOForwardingLetterAfterResult crobj = new crIPOForwardingLetterAfterResult(); frmReportViewer view = new frmReportViewer(); dt = R_Bal.GetIPOForwardingLetterDataAfterResult(Session_Id, App_ID); string Add = dt.Rows[0]["Company_Addr"].ToString(); Add.Replace("\n", "Dhaka"); dt.Rows.Add("Add"); crobj.SetDataSource(dt); view.crvReportViewer.ReportSource = crobj; view.Show(); }