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
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.
Ankur GuptaPosted May 31, 2010, 5:30 AM
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