Hi all,
I have created crystal report and i am not able to search in my reports.Is there any code which helps me to search within my reports.
It's urgent
Thanks in advance
Vineet
Crystal reports
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Ankur GuptaRank #1,017 · 1.9K reputationPosted May 31, 2010, 1:30 AM EDT
create two parameters Paran1 and Param2 in crystal report.
Select Crystal Report Menu then select Report->SelectionFormula->Record
then write {FieldName} > Param1 and {FieldName} < Param2
and at run time you can set values in these .
Dim rptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
rptDoc.Load("ReportName with full path", OpenReportMethod.OpenReportByTempCopy)
rptDoc.SetParameterValue(0, "A")
rptDoc.SetParameterValue(1, "B")
Where A & B is the range of your data in Text Boxes.
rptViewer.ReportSource = rptDoc