?
Solved

suppressing empty address lines in reporting services (2003)

Posted on 2013-11-07
4
Medium Priority
?
477 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 66

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 66

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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Written by Valentino Vranken. A while ago I wrote an article called Chart Optimization Tips (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Chart-Optimization-Tips.html).  This article explained how …
Hi, I have heard from my friends that it’s not possible to create Label Printing report using SSRS. I am amazed after hearing this words not possible in SSRS. I googled lot and found that it is possible to some of people know about the Report Bui…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

752 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