Click here to Skip to main content
13,299,898 members (66,567 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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  () + "')";

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

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 |
Web03 | 2.8.171207.1 | Last Updated 7 Oct 2012
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