How to convert nullable integer to strnig

Stimulsoft Reports.WEB discussion
Post Reply
a.ebbini
Posts: 101
Joined: Thu Jun 05, 2014 8:10 am
Location: Jordan

How to convert nullable integer to strnig

Post by a.ebbini »

I need to cross tab row a condition for two field to like this {DataSourceName.Field1}{DataSourceName.Field2} and Field 1 is string and Field 2 in Nullable integer ,so how can i do this in addition to that the condition must check Field 2 if null then condition will be {DataSourceName.Field1}
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to convert nullable integer to strnig

Post by HighAley »

Hello.

We need more information about the issue to give you exact answer. What type of data source you use and so on.
But you could try to use next expression:

Code: Select all

DataSourceName["Field2"]==DBNull.Value?"":DataSourceName.Field2.ToString()
Thank you.
a.ebbini
Posts: 101
Joined: Thu Jun 05, 2014 8:10 am
Location: Jordan

Re: How to convert nullable integer to strnig

Post by a.ebbini »

thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to convert nullable integer to strnig

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
Post Reply