Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Hi sir,
 
Do you have an idea how to get the datetimepicker value to crystal report.
 

Thanks in advance.
Posted 7-Jan-13 22:54pm
Comments
Rachna0309 at 8-Jan-13 5:11am
   
Pass your datetimepicker value as parameter to crystal report.
ianshack at 8-Jan-13 5:15am
   
NO, sir
I want to display the datetimepicker value in crystal report parameter.
Rachna0309 at 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 at 8-Jan-13 5:24am
   
Okey, I try that one.
 
Thanks for your idea
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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);
  Permalink  
v2
Comments
ianshack at 8-Jan-13 20:19pm
   
Okey I got it.
 
Cheers :)
Rachna0309 at 8-Jan-13 23:53pm
   
Accept the solution if solved.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

hi use like this!!!
 
ReportDocument rpt = new ReportDocument();
rpt.Load(ReportPath);
//code to login into database....
rpt.SetParameterValue("ParameterName", ParameterValue);
cystalReportViewer.ReportSource = rpt;
regards
sarva
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 588
1 George Jonsson 258
2 CPallini 200
3 OriginalGriff 174
4 Shemeemsha RA 140
0 OriginalGriff 5,985
1 Sergey Alexandrovich Kryukov 5,341
2 CPallini 4,760
3 George Jonsson 3,400
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100