Performing Calculations on a Variable

Stimulsoft Reports.JAVA discussion
Post Reply
TecnologiaMV
Posts: 85
Joined: Mon May 30, 2022 7:35 pm

Performing Calculations on a Variable

Post by TecnologiaMV »

Dear

Is it possible for a variable, where the option requested from the user is used, to be used for some type of calculation?

For example:

The user will provide a date value; I want to add 24 hours to this date and use this value in the report.
Attachments
Exemplo da variavel..png
Exemplo da variavel..png (25.78 KiB) Viewed 204 times
Lech Kulikowski
Posts: 7496
Joined: Tue Mar 20, 2018 5:34 am

Re: Performing Calculations on a Variable

Post by Lech Kulikowski »

Hello,

You can use the following expression in the report:
{Variable.AddHours(24)}

Thank you.
Post Reply