ToProperCase

Stimulsoft Reports.NET discussion
Post Reply
leif
Posts: 8
Joined: Sun Oct 21, 2007 4:17 pm

ToProperCase

Post by leif »

Is it possible to format at string as TitleCase. The first letter uppercase and the rest lowercase
Best regards
Leif Linding
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

ToProperCase

Post by Brendan »

you can use the following:

Code: Select all

{ToProperCase("brendan")}

or

{ToProperCase(Customer.FirstName)}
leif
Posts: 8
Joined: Sun Oct 21, 2007 4:17 pm

ToProperCase

Post by leif »

Brendan wrote:you can use the following:

Code: Select all

{ToProperCase("brendan")}

or

{ToProperCase(Customer.FirstName)}

It doesn't work.
I get an error:
the name ToProperCase has not been declared!
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

ToProperCase

Post by Vital »

Hello,

Please use following code:

Code: Select all

{Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(Customer.FirstName)}
Thank you.
Post Reply