passing startdate and enddate parameters in crystal reports

vbforme

New member
Joined
Aug 23, 2007
Messages
2
Programming Experience
1-3
I want to display a empname from a table who joined between two dates in crystal reports in vb.net 2003.

Pl. provide any examples.

Thanks
 
Example of monthly sales between two dates

VB.NET:
        Dim MonthlySales As New rptSalesReport

        MonthlySales.SetParameterValue("StartDate", dStartdate)
        MonthlySales.SetParameterValue("EndDate", dEndDate)

        CrystalReportViewer1.ReportSource = MonthlySales
        CrystalReportViewer1.Refresh()

dStartdate & dEndDate are variables used to hold dates set from date/time pickers.
 
VB.NET:
        Dim MonthlySales As New rptSalesReport

        MonthlySales.SetParameterValue("StartDate", dStartdate)
        MonthlySales.SetParameterValue("EndDate", dEndDate)

        CrystalReportViewer1.ReportSource = MonthlySales
        CrystalReportViewer1.Refresh()

dStartdate & dEndDate are variables used to hold dates set from date/time pickers.


Thank you very much.
 
Back
Top