Date Parameter
Hi, I'm new to FastReport.NET and trying to do a report on a date range. Have a :startDate and :endDate in my SQL then two date controls on a DialogPage.... am trying to assign the params to [sDate.Date] and [eDate.Date].
When I preview the report I get "Application uses a value of the wrong type for current operation" message. I've try Date and DateTime datatypes for the parameter type.
I couldn't find examples in your help for this, but if there is one, please refer me to it.
Am I doing something wrong or is this a bug?
Many thanks,
Chris
When I preview the report I get "Application uses a value of the wrong type for current operation" message. I've try Date and DateTime datatypes for the parameter type.
I couldn't find examples in your help for this, but if there is one, please refer me to it.
Am I doing something wrong or is this a bug?
Many thanks,
Chris
Comments
For example:
sDate.Date := StrToDate('09/01/2004'); // Pascal script
sDate.Date := StrToDate("08/05/2005"); // C++ script
Use DateToStr() function to convert date to the string representation.