Trying to Get Rid of White Space in SSRS Report

若如初见. 提交于 2019-12-08 02:08:12

问题


I have a Report where I need to Hide Duplicates but unfortunately I now have white space in the Returned Data where the Duplicate Records used to be.

How do I remedy this so my Report doesn't look so unprofessional?

I have searched the internet and found answers for hiding rows where there is no data, but in my report there is data that I don't want to show. I would just take it out of the Query but the way the Tables are set up that is not an option.

EDIT I am working with a Tablix, there is no ConsumeContainerWhitespace property that I have been able to find. this is not a case of an extra page being added at the end of the report on Export. I have blank spaces in between records.

EDIT

=iif(Fields!CaseNbr.Value = Previous(Fields!CaseNbr.Value), True, False)

that is the code that I have written into the Hidden Property under Visibility in the Properties Section of The Row of Placeholders for my Data. this leaves empty Cells in the table of information where the duplicate information is being hidden.

My Table looks like this:

Name            Title
Malione         Programmer

Manny           Watchman

回答1:


The answer to your question can be found here.

http://www.sqldev.org/sql-server-reporting-services/hidden-rows-still-displayed-9660.shtml

You are likely entering your expression in the text visibility properties instead of the row group visibility. Using the row group will remove the entire row, text and white space.




回答2:


This might help: http://blog.datainspirations.com/2011/03/18/the-case-of-the-extra-page/

First thing to try is the ConsumeContainerWhitespace property I mention at the end.




回答3:


To avoid the whitespaces you can use the builtin trim function and it will trim all the whitespaces. For more details of SSRS function you can refer here




回答4:


I recently had this issue and what I found was that if I set the visibility of a rectangle to an expression and simply set the expression to =true, the rectangle shrank appropriately. I also had the report set to ConsumeContainerWhitespace although I'm not sure this is required in every case.



来源:https://stackoverflow.com/questions/11562043/trying-to-get-rid-of-white-space-in-ssrs-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!