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

Comments

  • edited September 2005
    Possible solution is using function StrToDate().
    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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.