Crystal Reports
How to pass Parameters to Crystal Report Viewer using C# Windows Forms
2 Answers
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
Prabhu RajaRank #861 · 2.6K reputationPosted Sep 16, 2011, 9:28 AM EDT
Try this,
//Load you Crystal Report Source
//Pass Parameter to Your Crystal Report
tickettranvalue.Value = this.txtName.Text.Trim();
//You can Repeat Above Statements to pass more then one parameter.
//But Increment Index of repDoc.ParameterFields[]
-------------------------------------------------------
If this post helps you, then mark as "Correct Answer"
Thank You
Vilas GiteRank #951 · 2.1K reputationPosted Sep 18, 2011, 6:42 AM EDT
Hi Ravindranath..
Refer:
http://csharpdotnetfreak.blogspot.com/2009/07/crystal-reports-in-winforms-parameter.html
http://www.c-sharpcorner.com/UploadFile/mahesh/paramInCR11012006132839PM/paramInCR.aspx
http://www.c-sharpcorner.com/1/61/
Thanks!
----------------------------------------------------------------------
If this reply helps your post…then check "This is correct answer"