Message "Expression in Text property of 'Text1" can't be evaluated!"
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Message "Expression in Text property of 'Text1" can't be evaluated!"
Using Vs2005, StimulReport version 2007.3.30.0 and C# as report language.
In a datetime dictionary field, if i pass a "null" value", in design preview i see the message "Expression in Text property of 'Text1" can't be evaluated!" (in the lower panel, where compiler messages appear).
Doesn't seem a critical message, but i need to know if there is a problem anyway.
Thanks.
In a datetime dictionary field, if i pass a "null" value", in design preview i see the message "Expression in Text property of 'Text1" can't be evaluated!" (in the lower panel, where compiler messages appear).
Doesn't seem a critical message, but i need to know if there is a problem anyway.
Thanks.
Message "Expression in Text property of 'Text1" can't be evaluated!"
Couldn't you use a DateTime? field?
Marco
Marco
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Message "Expression in Text property of 'Text1" can't be evaluated!"
It's already a datetime field.
Message "Expression in Text property of 'Text1" can't be evaluated!"
Yes and what if you use a DateTime? (nullable) field?
Marco
Marco
Message "Expression in Text property of 'Text1" can't be evaluated!"
Are you referring the database column using this format, DATASOURCE_NAME.COLUMN_NAME, if yes, then you should not use that (esp. for numeric and date columns), instead use the format, DATASOURCE_NAME("COLUMN_NAME").
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Message "Expression in Text property of 'Text1" can't be evaluated!"
With "DateTime (nullable)" it works, but if the datasource comes from a datatable with a datetime field in it, it is automatically created in StimulReport as "DateTime", not "DateTime (nullable)".EDV wrote:Yes and what if you use a DateTime? (nullable) field?
Message "Expression in Text property of 'Text1" can't be evaluated!"
Hello Fabio,
Thank you.
Our report engine get data using standard Ado.Net. By default Ado.Net use DateTime type.With "DateTime (nullable)" it works, but if the datasource comes from a datatable with a datetime field in it, it is automatically created in StimulReport as "DateTime", not "DateTime (nullable)".
Thank you.
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Message "Expression in Text property of 'Text1" can't be evaluated!"
Well, so why does the message "Expression in Text property of 'Text1" can't be evaluated!" appear when the value in a datetime field is null? How can i avoid it? (Note: it's not a critical message, only a warning that i see only in preview design).Vital wrote:Our report engine get data using standard Ado.Net. By default Ado.Net use DateTime type.
Thanks.
Message "Expression in Text property of 'Text1" can't be evaluated!"
The reason it appears is because the report engine attempts to convert the field to a datetime and because the value is null it cannot conver the value, instead leaving the text component blank instead of containing Date text