I'm trying to display the user-selected value of a parameter (with automatic UI) in my report, but I'm not sure how to correctly access the value. In this report, I have a DateTime parameter which I would to display in the report header.
The best idea I could come up with was to use:
However, that gives me the original value I set ("=DateTime.Now"). It makes sense that it just displays the string entered as the default value, but I'm trying to get the actual input from the user. So if the user selected 5/11/2009 as the date, I'm looking to get a DateTime object back that represents 5/11/2009 so I can format it and display it in my report header.
How can I do this?
Thanks.
The best idea I could come up with was to use:
this.ReportParameters["DateStart"].Value.ToString() |
However, that gives me the original value I set ("=DateTime.Now"). It makes sense that it just displays the string entered as the default value, but I'm trying to get the actual input from the user. So if the user selected 5/11/2009 as the date, I'm looking to get a DateTime object back that represents 5/11/2009 so I can format it and display it in my report header.
How can I do this?
Thanks.