I have a report with several report parameters. Two of these are datetime parameters which, on initial report start, I want to have set to a null value.
So, I have the parameters set up as Type = DateTime and AllowNull = True and Value = Null.
In preview mode in VS, it looks fine, both parameters initialize with today's date but with the NULL checkbox on. This is how I want it.
But when I run the report page, they initialize with no value, NULL NOT checked on, and the 'Invalid Value' icon is showing.
I have tried setting the initial values in the code with:
this.ReportParameters["dateparameter"].Value = null;
but this does not work.
Any ideas?
Dan
So, I have the parameters set up as Type = DateTime and AllowNull = True and Value = Null.
In preview mode in VS, it looks fine, both parameters initialize with today's date but with the NULL checkbox on. This is how I want it.
But when I run the report page, they initialize with no value, NULL NOT checked on, and the 'Invalid Value' icon is showing.
I have tried setting the initial values in the code with:
this.ReportParameters["dateparameter"].Value = null;
but this does not work.
Any ideas?
Dan