Left({field},1) in Report Designer

Stimulsoft Reports.NET discussion
Post Reply
Jon
Posts: 6
Joined: Thu Feb 15, 2007 8:06 pm
Location: New Zealand

Left({field},1) in Report Designer

Post by Jon »

Hi,

In a report I wish to just use the first character of a string as a group by (like a phone book with everyone's name starting with A, B, C, etc).

To try and get it working I made a blank (ungrouped) report and then I dragged the database field onto the report. I then changed its Text property to: ".Left({ReportDatabase.Name},1)" the intellisense implies this will work, but it actually outputs: ".Left(Dave,1)"

Can anyone offer a solution?

Thanks,
Jon.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Left({field},1) in Report Designer

Post by Vital »

Please use following conditions:

Code: Select all

{ReportDatabase.Name.Substring(1)}
Post Reply