Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Stop SSRS from removing blank lines from dataset in pdf

Posted on 2014-04-08
3
Medium Priority
?
683 Views
Last Modified: 2014-04-09
I have a dataset that creates a blank line, but when I display the dataset in a report in print preview, or attempt to export to pdf it automatically removes those blank lines.  How do I keep them?
0
Comment
Question by:UnderSeven
3 Comments
 
LVL 37

Assisted Solution

by:ValentinoV
ValentinoV earned 1000 total points
ID: 39988383
Do you mean that the fields displayed on the report are empty/null for some of the records?  As far as I can tell those lines shouldn't get removed from the table when rendered to PDF.

As a workaround, perhaps you can put something (anything) in one of the fields and give it the same color as the background?  That way it still appears blank and I hope it prevents SSRS from removing them.
0
 
LVL 27

Accepted Solution

by:
planocz earned 1000 total points
ID: 39988821
It sounds like on the blank line you are posting some kind  of output..
you can try someting like this in the textbox/ line area that you are looking for.

=IIF(trim(fields!mydata.value) = "" or trim(fields!mydata.value) = nothing, " ", fields!mydata.value)
0
 

Author Closing Comment

by:UnderSeven
ID: 39989702
It wasn't blank, there was a field providing data the report was making blank.  So that's probably part of the confusion.  However, that left me with data I didn't want to display so I used the first response suggested workaround to just color it white.  Thanks to you both.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only see…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

916 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