hi
i want to know how to show the text box value in crystal report.
please help me please please
thanks in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Keyur PatelPosted Jul 26, 2013, 5:06 AM
You can write code in button click event or page load event to call your crystal report.
Pass Parameter name and textbox value in SetParameterValue method.
Here are some code for your understanding. I hope, this will help to getting some idea.
=========================================================================
ReportDocument CryRptDocument = new ReportDocument(); CryRptDocument.Load("CrystalReport1.rpt"); // Put Crystal Report Path
CryRptDocument.SetDatabaseLogon("userName", "password"); CryRptDocument.SetParameterValue("parameterName", TextBoxName.Text); // Pass Parameter name and text box value in SetParameter value function
crystalReportViewer1.ReportSource = cryRpt;
crystalReportViewer1.Refresh();
=========================================================================