Click here to Skip to main content
12,697,311 members (28,384 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB 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 23:54pm
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
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  
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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2017
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