hi,

How to pass a Two Date parameter to a report at runtime using VB .NET


1. How do we pass multiple values eg. Startdate, EndDate to crystal
reports
parameter.
2. I have a report to filter by two dates like FromDate And ToDate

my Code is following which i have written.

It shows Error like " Date time Required"

Dim SelectFormula1 As String

SelectFormula1 = "{tblSample_Master.DateOut} in '" & StartDate & "' to '" &
EndDate & "'"

CrystalReportViewer1.SelectionFormula = SelectFormula1

CrystalReportViewer1.RefreshReport()

CrystalReportViewer1().ReportSource =
"D:\KOTITI\RptSummaryReportFromDateToDate.rpt"

thanx
Raj

--
Raj Kumar Mishra
jcast Networks Ltd.
New Delhi.
India.
91-51678212,13,14

Re: How to pass a Two Date parameter to a report at runtime using VB .NET by Doug

Doug
Wed Feb 18 05:30:37 CST 2004

What are Crystal Reports? OK, I know, but this is not the correct forum to
ask about them. This newsgroup is for Visual Basic as it applies to
Microsoft Word.

Try http://www.crystalkeen.com/articles/crystalreports/newsgroups.htm

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
"Raj" <rajkumar@jcastnet.com> wrote in message
news:OZddcjg9DHA.2460@TK2MSFTNGP09.phx.gbl...
> hi,
>
> How to pass a Two Date parameter to a report at runtime using VB .NET
>
>
> 1. How do we pass multiple values eg. Startdate, EndDate to crystal
> reports
> parameter.
> 2. I have a report to filter by two dates like FromDate And ToDate
>
> my Code is following which i have written.
>
> It shows Error like " Date time Required"
>
> Dim SelectFormula1 As String
>
> SelectFormula1 = "{tblSample_Master.DateOut} in '" & StartDate & "' to '"
> &
> EndDate & "'"
>
> CrystalReportViewer1.SelectionFormula = SelectFormula1
>
> CrystalReportViewer1.RefreshReport()
>
> CrystalReportViewer1().ReportSource =
> "D:\KOTITI\RptSummaryReportFromDateToDate.rpt"
>
> thanx
> Raj
>
> --
> Raj Kumar Mishra
> jcast Networks Ltd.
> New Delhi.
> India.
> 91-51678212,13,14
>
>