Click here to Skip to main content
15,883,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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);

C#
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

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