Date conversion

edited 5:12PM in FastReport .NET
I'm trying to pass start and end dates as parameters to a report from form windows VB.Net but when the report runs I'm getting a conversion error. the error message is :

Error BC40005: function 'ToString' shadows an overridable method in the base class 'Object'. To override the base method, this method must be declared 'Overrides'.

Is this because the data is incoming as string?, attempts to convert using format and cdate etc are still failing with the same error. Not sure if this is from FR or VB - any ideas?

Comments

  • edited May 2011
    Found what the problem mwas here and it was nothing to do with dates but just the way I joined two filter statements. On that note I am having trouble getting a filter to work properly. The checked against field is a date and the parameter is set to the contents of a vb.net datetime picker. I want the report to return records with a date after the one supplied in the parameter however the report continuosly returns ALL records regardless of date.

    I'm using the filter [Report3a.start_date] >= [startdate] where startdate is the parameter name. Is this incorrect?

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.