Solved

Stop SSRS from removing blank lines from dataset in pdf

Posted on 2014-04-08
3
643 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 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

22 Experts available now in Live!

Get 1:1 Help Now