SSRS Hiding the textbox in a table cell causes the borders to disappear

ε祈祈猫儿з 提交于 2019-12-23 12:15:16

问题


I have a report with a table in it. And each table cell has borders around it.

The problem I'm experiencing is that if I hide the textbox in any of the cells, the borders also disappear.

I want the textbox to hide but still show the borders.

The textbox in question shows the visibility toggle icons (+/-) so I can't use an iif statement to change the textbox's value to be an empty string when I don't want to see anything in it.


回答1:


You can place the textbox inside a rectangle.




回答2:


***So , I was having this same issue:* **

The Problem:

I assume that you placed a border around your text box and decided to place the hide and toggle element to your text box. or your Rows are not stepped down. Two solutions, I think the first solution is what you are looking for:

Solution 1:

I Noticed that SRSS reporting also has this grouping feature by rows. So to hide the text in the textbox without losing borders is to create a step-down feature within the grouping. So basically you can assign hide text box property without disturbing the rows above the textbox. This may be a better solution.

Solution 2:

You must instead place the border attribute to your text box and place the hide and toggle function on the individual groups. So for you, you have to remove the hide + toggle feature on the textbox. Right click the group element in your "rows" or "columns" and assign your drilldown hide + toggle feature on the group elements. In other words: "group properties" not "text box properties"

I hope this re-solve your issue.




回答3:


I ran into the same issue. I solved it by changing the text color to white (or whatever the background color of the textbox is). I was doing this inside a table, and couldn't find a way to insert a textbox inside of a rectangle as stated in the other answer...




回答4:


I had similar problem and used similar approach like @Anony Mous, but instead of changing text color to background color I used expression to change text value =IIF(InScope("RowGroup") = "True", Fields!Textboxvalue.Value, "") - and it works as expected. Problem with background color change is that, if user unintendely select the text and makes it active, it become visible.




回答5:


Just select the Textbox in question, run F4 (to access to the properties chart at the right side of VS or SQL), select the HideDuplicates dropdown and Select the Data Set that you are using :)



来源:https://stackoverflow.com/questions/17602651/ssrs-hiding-the-textbox-in-a-table-cell-causes-the-borders-to-disappear

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