Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0
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 21:27pm

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



Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 7 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid