Solved

Stop SSRS from removing blank lines from dataset in pdf

Posted on 2014-04-08
3
659 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
[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
3 Comments
 
LVL 37

Assisted Solution

by:ValentinoV
ValentinoV earned 250 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 250 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
I recently went through setting up a JasperReports Server using the AWS EC2 instance, and this article will cover some basic administration tasks I had to perform.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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…

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