Click here to Skip to main content
15,900,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to retrive data when we selected date a date from timepicker on crystal report using vb.net
Posted

you can use parameter to pass value to crystal report. study below code project article and you will get idea how to add parameters and how to pass it.

Crystal Report Filtering Using Selection Parameters[^]
 
Share this answer
 
Hi,
You have to add a parameter in crystal report.

(ex)
my parameter value is fromdate and todate,
table is StockOutView

your cr should include simiral code

{StockOutView.StkOutDt}>={?FromDate} AND {StockOutView.StkOutDt}<={?ToDate}


and in your vb coding , in crystal report viewer do the changes as follow

cryrpt.SetParameterValue("FromDate", datetimepkr1.value)
cryrpt.SetParameterValue("ToDate", datetimepkr2.value)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900