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
 

DavidT_macktool

Well-known member
Joined
Oct 21, 2004
Messages
502
Location
Indiana
Programming Experience
3-5
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.
 

vbforme

New member
Joined
Aug 23, 2007
Messages
2
Programming Experience
1-3
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.
 
Top Bottom