Error using DateTime.UTCNow on Parameters Expressions

Stimulsoft Reports.NET discussion
Post Reply
Kelleni
Posts: 3
Joined: Wed Mar 08, 2017 5:27 pm
Location: Brasil

Error using DateTime.UTCNow on Parameters Expressions

Post by Kelleni »

After upgrading stimulsoft Reports for version 2021.1, I am having problems when using DateTime.UTCNow on Parameters Expressions.

When I try to execute a Query that has an expression like 'DateTime.UTCNow.AddMinutes(-60)', Stimulsoft returns to me this message:
Error UtcNow.PNG
Error UtcNow.PNG (84.78 KiB) Viewed 1789 times
It used to work on the latest version, but after the upgrade it doesn't work anymore, I don't know if I have to add any other reference on Code, or stilmulsoft has changed the whey to declare DateTime on the Paramters Expressions.

Another thing that I've noticed is that when I open the Preview, it works, the problem only happens when I Try to Execute the Query.
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Error using DateTime.UTCNow on Parameters Expressions

Post by Lech Kulikowski »

Hello,

We have added that task to our to-do list. We will try to fix it.

Thank you.
#3968
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Error using DateTime.UTCNow on Parameters Expressions

Post by Lech Kulikowski »

Hello,

The issue is fixed. The fix will be available in the next release build.

Thank you.
Post Reply