hi
i want to know how to show the text box value in crystal report.
please help me please please
thanks in advance
Show text box value in crystal report
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Keyur PatelRank #1,216 · 1.5K reputationPosted Jul 26, 2013, 1:06 AM EDT
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();
=========================================================================