Date Problem

Stimulsoft Reports.NET discussion
Post Reply
albloshi
Posts: 14
Joined: Wed Sep 01, 2010 5:39 am
Location: K.S.A

Date Problem

Post by albloshi »

I have a date field with the text expression

Cont. Dep. SR: {Round(fileFrontPage.ContDepFee,2)}

Where fileFrontPage.ContDepFee is a double(nullable) field in my dataset

It is showing error

c:\Users\Abdulaziz\AppData\Local\Temp\trjdeckv.0.cs(301,97) : error CS1502: The best overloaded method match for 'System.Math.Round(double, int)' has some invalid arguments
c:\Users\Abdulaziz\AppData\Local\Temp\omdi8flw.0.cs(301,115) : error CS1503: Argument '1': cannot convert from 'double?' to 'double'

waiting for a clue to move...

thanx in advance
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Date Problem

Post by Alex K. »

Hello,

You can use the following expression:

Code: Select all

{Round(fileFrontPage.ContDepFee.GetValueOrDefault(),2)}
Thank you.
Post Reply