null text box

Stimulsoft Reports.NET discussion
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

null text box

Post by Jan »

Hello,

Please show me your expression.

Thank you.
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

null text box

Post by majidsoft »

hi
i change my extension of file in float and my problem is solved but my second question is if my field have null value i want to set symbol for example (-) in that field
thank you
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

null text box

Post by Alex K. »

Hello,

Please use {DataSource["ColumnName"] == DBNull.Value ? "-" : DataSource.ColumnName.ToString()} for displaying Null values.

Thank you.
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

null text box

Post by majidsoft »

hi thanks
my problem solved
bye
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

null text box

Post by Alex K. »

Ok! We are always glad to help you!
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

null text box

Post by majidsoft »

hi
lok my friend this code you send to me change data type to string and when i was to get max or min or avg i faced a error can you change end of that code change tostring for example to double
thank you
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

null text box

Post by Alex K. »

Hello,

Code: Select all

{IIF(DataSource["ColumnName"] == DBNull.Value, 0,DataSource["ColumnName"])}
But then for the following conditions:
majidsoft wrote:i change my extension of file in float and my problem is solved but my second question is if my field have null value i want to set symbol for example (-) in that field
you have to add conditions to your further calculations.


Thank you.
majidsoft
Posts: 66
Joined: Fri May 07, 2010 6:54 am

null text box

Post by majidsoft »

hi
thats true i change my extension of file and i think its work good but when i want to get avg or max or min i faced an error
now thanks to you my problem solved
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

null text box

Post by Andrew »

Ok! Have a nice day!
Post Reply