Click here to Skip to main content
15,867,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi sir,

Do you have an idea how to get the datetimepicker value to crystal report.


Thanks in advance.
Posted
Comments
Rachna0309 8-Jan-13 5:11am    
Pass your datetimepicker value as parameter to crystal report.
ianshack 8-Jan-13 5:15am    
NO, sir
I want to display the datetimepicker value in crystal report parameter.
Rachna0309 8-Jan-13 5:21am    
That's what I am telling you.Make new parameter field in crystal report design.Store your datetimepicker value in one variable and pass this as parameter to crystal report.

crystalReport.SetParameterValue(@variable, txtdatetimepicker.value);
ianshack 8-Jan-13 5:24am    
Okey, I try that one.

Thanks for your idea

hi use like this!!!

VB
ReportDocument rpt = new ReportDocument();
rpt.Load(ReportPath);
//code to login into database....
rpt.SetParameterValue("ParameterName", ParameterValue);
cystalReportViewer.ReportSource = rpt;

regards
sarva
 
Share this answer
 
Make new parameter field in crystal report design.Store your datetimepicker value in one variable and pass this as parameter to crystal report.

VB
crystalReport.SetParameterValue(@variable, txtdatetimepicker.value);
 
Share this answer
 
v2
Comments
ianshack 8-Jan-13 20:19pm    
Okey I got it.

Cheers :)
Rachna0309 8-Jan-13 23:53pm    
Accept the solution if solved.

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