Mike Diehl's WebLog

Much aBlog about nothing...

SQL Reporting Services - Expression language?

I'm starting to use SQL Reporting Services. I've got some textboxes that I want to format nicely for an address, for example.

Unit
Street
City Region PostalCode
Country

All this needs to be in one textbox. If Unit or Street is null, then there should be no blank line.

So, I've got an expression in my Textbox Value property:

=Fields!Unit.Value + IIf(Fields!Unit.Value=““,““,chr(13) + chr(10)) + Fields!Street.Value + chr(13) + chr(10) + Fields!City.Value + “ “ + Fields!Region + “  “ + Fields!PostalCode.Value

It sorta works, I just tried out the chr(13) + Chr(10) bit and it does put in a carriage return. I'm now seeing if I can use IsNull() [first crack at that is that it doesn't exist] and IIf() does exist.

My question to the blogsphere is this: what expression language is used in SQL RS? VBA? It doesn't look like .NET. Is there a reference anywhere as to what functions are available?

Mike

Published Monday, March 15, 2004 12:06 PM by MikeD

Comments

# re: SQL Reporting Services - Expression language?@ Monday, March 15, 2004 2:15 PM

VB.NET

by anon

# re: SQL Reporting Services - Expression language?@ Monday, March 15, 2004 2:53 PM

Ditto.

You will see more of this sort of "programming within properties" thing coming in Whidbey too!

by Lance

# Take Outs for 15 March 2004@ Tuesday, March 16, 2004 12:29 AM

You have been Taken Out! Thanks for the post.

# re: SQL Reporting Services - Expression language?@ Monday, June 07, 2004 4:07 AM

garbage

by China Men