Expressions in Fast Report
Hi Alex,
I'm progressing with Fast Report, as Beta version, it looks unbeatable, we decided it to use it even if we have to wait for a bit more time.
I have 2 questions:
1. I'm trying to use this expression in the Filter section:
[myField.starttime] == [prmDateFrom] AND [myField.starttime] <= [prmDateTo];
but it gives me an error : Error CS 1200
What do I do wrong in that? Is there are some documents/manual one how to use Fast Report Expressions?
2. Can we buy Fast Report.net now, or do we have to wait for the final release?
Thanks,
John,
I'm progressing with Fast Report, as Beta version, it looks unbeatable, we decided it to use it even if we have to wait for a bit more time.
I have 2 questions:
1. I'm trying to use this expression in the Filter section:
[myField.starttime] == [prmDateFrom] AND [myField.starttime] <= [prmDateTo];
but it gives me an error : Error CS 1200
What do I do wrong in that? Is there are some documents/manual one how to use Fast Report Expressions?
2. Can we buy Fast Report.net now, or do we have to wait for the final release?
Thanks,
John,
Comments
1) The manual is not ready yet; it covers the use of expressions.
The expression must be written in language that you chose for a report (in the "Report|Options..." menu). By default, it is C# language, so your expression should look as follows:
[myField.starttime] == [prmDateFrom] && [myField.starttime] <= [prmDateTo]
2) If you want you can buy it here: http://www.fast-report.com/en/buy/order-FASTREPORT.NET.html.
1. I have to send the Date value from C# application as (Text) not as date type.
So, the expression requires prmDateFrom to be Date type, Can I use Text type and put it this way:
[myField.starttime] == "#"& [prmDateFrom] &"#"
or
[myField.starttime] == #12/12/2000#
To clear it more, How can I convert the String value to Date value in Fast Report Expression.
Thank you,
[myField.starttime] == DateTime.Parse([prmDateFrom])
but the better solution is to pass date as DateTime, not as String.