Solved

suppressing empty address lines in reporting services (2003)

Posted on 2013-11-07
4
387 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Steps to solve SSRS SQL 2008 R2 User Access Control (UAC) Permission Error With the introduction of SQL Server 2008 R2 and Vista (Windows 7 as well) came new enhanced security features. One of the features included was User Access Control (UAC) t…
Have you ever had to extract data from a Microsoft SQL Server database and export it to an Excel file, but did not want to use a DTS package? The concept in this article is not new, but it is the answer and will also work on 64-bit SQL boxes.   …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now