ASP.NET Weblogs

Welcome to ASP.NET Weblogs Sign in | Join | Help
in Search

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

Comments

 

anon said:

VB.NET
March 15, 2004 2:15 PM
 

Lance said:

Ditto.

You will see more of this sort of "programming within properties" thing coming in Whidbey too!
March 15, 2004 2:53 PM
 

TrackBack said:

You have been Taken Out! Thanks for the post.
March 16, 2004 12:29 AM
 

China Men said:

garbage
June 7, 2004 4:07 AM