In My windows application selection formula having textbox value gives error.
Not recognising expression without textbox it is working fine.
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt;
rpt = new CrystalReport6();
rpt.Load(@"H:\CrystalReportsApplication1\CrystalReportsApplication1\CrystalReport6.rpt");
// rpt.RecordSelectionFormula = "{cashtbl.stdid}=7";---working fine
or
//the below code gives error saying number is equired
rpt.RecordSelectionFormula = "{cashtbl.stdid}='" +Convert.ToInt32(textBox2.Text) + "'";
crystalReportViewer1.ReportSource = rpt;
crystalReportViewer1.Refresh();