Solved

suppressing empty address lines in reporting services (2003)

Posted on 2013-11-07
4
413 Views
Last Modified: 2013-12-10
I'm trying to suppress empty lines in reporting services.

the code =trim(Fields!cla_address_line_2.Value)
0
Comment
Question by:shwelopo
  • 2
4 Comments
 
LVL 65

Expert Comment

by:Jim Horn
ID: 39630466
Define 'suppress'.
0
 

Author Comment

by:shwelopo
ID: 39630493
I'd like the next line that's not empty ro move up.
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 39630743
Hmm...  rather than deal with this in the .rdl, any chance you can verify that whatever SQL in your main data set is returning empty rows, and deal with it there?
0
 
LVL 27

Accepted Solution

by:
planocz earned 500 total points
ID: 39634772
Jim is right, but you can hide the row if the it is empty.

=IIF(trim(Fields!cla_address_line_2.Value)= "", True, False)
Place this in the hide Windows properpties of that textbox in the report.
this will work only if address2 is only a single line.

If not then you will need to use this in the address1 textbox....

=IIF(trim(Fields!cla_address_line_2.Value) = "", trim(Fields!cla_address_line_1.Value) , trim(Fields!cla_address_line_1.Value) & vbCRLF & trim(Fields!cla_address_line_2.Value))
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you'll probably know, a data region in a SQL Server Reporting Services report can be linked to only one dataset.  This makes it troublesome when you need to display data from more than one dataset in the same data region.  SQL Serve…
Time Corrections for Reports Working with a report, we made some interesting discoveries about the time corrections/updates We are using the following Parameters: Starting Entered Date (Date) formatted as Data type: "Date/Time" Ending Entered …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question