Hi All,
I have the following code which works using the ReportViewer component. However how do I pass in the current date i.e Now?
When I use DateTime.Today.ToString I get the following error: The value provided for the report parameter 'SnapshotDate' is not valid for its type. SnapshoteDate is defined as DateTime.
If Not IsPostBack Then
ReportViewer1.ServerUrl = "http://devnet2/ReportServer"
ReportViewer1.ReportPath = "%2fCorVuReports/LAA/Pie&SnapshotDate=06/01/2004"
ReportViewer1.Toolbar = Microsoft.Samples.ReportingServices.ReportViewer.multiState.False
ReportViewer1.Zoom = "75"
End If
I managed to solve this...
cheers
|||Could you please post your resolution, so others (like us) who encounter the problem could benefit from your wisdom.
Much appreciated.
No comments:
Post a Comment