Click here to Skip to main content
12,625,402 members (35,016 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#2.0 C#
hey frnds,
i am doing one project in that i have problem in doing crystal report.i use the datepicker for taking date.
i m usineg the selection formula is:---

DateTime date = DateTime.Today;

DateTime tomorrow = DateTime.Now.AddDays(1);

this.crystalReportViewer2.ReportSource = rpt;
               this.crystalReportViewer2.SelectionFormula = "{Booking.Arrival_Date} in datetime('" + date.ToShortDateString() + "') to datetime('" + tomorrow  .ToShortDateString  () + "')";
               this.crystalReportViewer2.Refresh();
               crystalReportViewer2.Refresh();

its work for currnet date not for old date.
so plz say solution with selection formula.


THANKS,
Posted 6-Oct-12 22:27pm

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
Web01 | 2.8.161128.1 | Last Updated 7 Oct 2012
Copyright © CodeProject, 1999-2016
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