Get rid of group icon without hiding column - reporting-services

We have a report that gets populated by stored procedure. In the datatable we have a column "RowType" which is set to either 1, 2 or 3.
1 : Normal data row
2 : Important data row (In the picture this is the 1st row of data, the bold one)
3 : Devider rows. These are the rows with which we are having some issues. They are the two rows at the bottom of the image with the grey background.
The entire report is styled by either the "RowType" value or some of the other items in the datatable.
The Problem:
We have decided to change our report to make use of grouping, instead of drill down reports. I'm not going to go into the reasons for this decision.
The grouped rows each have a little icon to the left of it (Generated by report server) which is used to view the details of that row.(Sorry about that, pretty sure you know all this).
I have coded the "expand icon" to be hidden on rows that does not have detailed/grouped data, but that left me with the problem that the grey column would now also be hidden which leaves me with a blank white space instead of the grey cell.
Obviously this makes my report look horrible. Is there any way to remove the icon for a particular row without setting the Hidden property to True?
If not, is there a way to have the report row fill the background of a hidden cell with a defined colour?
The bottom right corner contains an example of what it looks like when one of the grey cells have been hidden. The bottom left shows the report with the unwanted icons in the grey cells

I think you could cut your current textbox out (the one with the +- icon, then add a rectangle from the toolbox into that cell, then paste your textbox back in. That way the texbox becomes a child of the rectangle. Then you can move your grey formatting to the rectangle, which will never be hidden.

Related

Is there a way to make a rectangle not appear in the first page in ssrs?

I am creating a report on ssrs.
I have a rectangle with a textbox inside of it, that I want to hide on the first page. This is because I have another description of the item, with an image next to it, that only appears in the first page. Below this there is a tablix with details of the item, it can contain a variable number of rows.
The problem is I'm not able to hide the rectangle with the textbox in the first page only. I tried using global variables like PageNumber but you can't use it in the report body ( I tried many workarounds for this but none worked). I also can't just place the two rectangles I need to show on the report header because that only shows the first item (can't link it to dataset).
So what I'm asking is how to hide the rectangle? In the Image I linked the rectangle I want to hide on the first page is the grey one and the one that only shows in the first page is the pink one.
Thank you for you replies.

Unwanted space appearing under nested table in SSRS report

I have a problem with white space appearing in at the bottom of a nested table. It only occurs if the contents of the main table cell row has data which vertically makes the cell height higher than the data contents in the nested table. E.g. a description field caused this to occur when the nested table cell only had a link to one item. I hope that make sense. Please see attached screenshot. (The screenshot is a very crude view of some demo data as I could not use the actual information, but I have modified it to show the same result).
Is there a way that I can make the nested table cell vertically full the whole cell so that the report looks clean and doesn't have white space appearing at the bottom?
Use a single tablix.
To emulate cell merging:
Create a total for the value you need for the merged cell under the related group and make it hidden (red color)
For the "merged" cell expression use
= Iif(RunningValue( Fields!rg2.Value,CountDistinct,"rg1")=1, ReportItems!Textbox12.Value, Nothing)
The expression checks the distinct count of group2 values. If its 1 (first cell) returns the value of the total otherwise nothing.
To make the cell look as one use the following border expressions
top border:
=Iif(RunningValue( Fields!rg2.Value,CountDistinct,"rg1")=1, "Solid", "None")
botton border:
= Iif(RunningValue( Fields!rg2.Value,CountDistinct,"rg1") = CountDistinct(Fields!rg2.Value, "rg1"), "Solid", "None")

SSRS border lines with different colors not overlapping properly

I have a user-designed report that I am trying to replicate in SSRS, the report has a table with a default border color (Gray).
I need to draw a black line through one column, this adds the effect of separating the columns that lead up to the final column.
The problem I have is that the black line is not consistent but looks "split up" by the grey border of the table(and its cells).
The control used is a Tablix.
The workaround we have is to make the whole report color black or gray, but I'm just asking this to see if there is a way to implement different colors in an aesthetic way.
You can fix it by removing thick border and adding a BLANK column where you want the thick line.
Make the width of the column as per your requirement and make the borders to none for these cells (of blank column added). You may play with your left and right cells (it can be done). also, You should make the Can grow and Can shrik to False and True respectively.
If you want complete dark line (as shown), you may get an exception on the last row of the border for this particular added column. You can create a Report variable and keep the totalRecordCount and use it in expression of down border. Hope it helps!

SSRS - RDLC Tablix Rows will not split across pages

I have a tablix with two columns of data (the section name and the section text). The section text has grown so large for some sections that the row representing the section takes up 2/3 or more of the page. THe report prints fine until on of these large rows would have to split over the end of a page and continue on the next page. In this case, and only in this case, the rows leaves large amounts of white space on current page and start on the next page (as if it had a page break before it)
I have already set the Tablix General Property "keep together on one page if possible" to true and all the other page break options for the tablix and row groups to false, to no avail.
Does anyone know of a trick or work around to make the large rows split over pages??
Setting Keep together on one page if possible to true/checked will cause SSRS to attempt to keep the row on one page, which means if the data spans across page breaks it will move that row to start on a new page so that it can be seen on one page, which would introduce white space where the row would be if the table was contiguous. So you need this setting set to False/Unchecked.
Next, ensure that the row group proeprty Keep together is set to False. This can't be accessed through the normal dialog box. If you don't have the properties pane showing in BIDS, then pressing F4 will bring this pane up. Select the row group(s), and ensure the property is appropriately set.
Also make sure that the text boxes inside the tablix are also set to KeepTogether=False. This will fix the problem.

Access report "Can Grow" property needs to effect neighboring controls

I have a report with a bunch of controls in the Detail section.
I am working off a word document that was given to me as a sample and I recreated it in access almost perfectly. What I need now is a way to handle overflowing the text boxes. I have "Can Grow" enabled, but here is the real issue:
I have a fake table going on. Multiple text boxes arranged in a way that just doesn't work in a subform. Certain cells have red, green or yellow backgrounds while others are just plain white. When one of the text fields overflows, and "grows", the other text boxes in the same row stay the same size as before and it looks very very odd (703 twips vs 300). I would really just love for it to work as if it were a table in word/excel and the entire row would grow at once (all =703 twips), but seeing as how it isn't literally a "row" I just want a way to associate the height of these text boxes with each other.
Is anything like this possible? If I need to clarify anything just let me know, I hope I've given ample information.
In the design view of your report select all the textbox controls in the detail section and all the labels in the page header section. Right click on one of the textbox controls and select Layout -> Tabular. The controls and labels should now align with each other.
You've not set which version of Access you're using but this works in Access 2007.
Ok here we go. So I had a fake table, I needed it to have table borders around each text box and when one text box got taller than the others in the row, the borders would look totally wrong. So, what we have to do is literally draw on the report at runtime, which can be done in any view including print preview. This code must be placed in the Print event
'step one. find out which box in the row has the greatest height value.
'You can come across this information however you want.
'It will likely depend on what data goes in the boxes.
'For the sake of the answer length we will skip that actual code
'step two. Take measurements and store them in variables.
'You will need a start point, and an end point in standard (x1,y1),(x2,y2) form.
Dim t As Integer 'top
Dim l As Integer 'left
Dim b As Integer 'bottom
'step three. Use these measurements and draw your lines.
'Try to use looping if your naming and report layout work will allow it.
Me.Line (l, t)-(l, b), RGB(0, 0, 0)
' (x1,y1)(x2,y2),pick a color
'We just drew a line straight down the length of the control
'If you plan ahead, and place a line on the report permanently on top of the first row
'and below every row, you will only need to draw vertical lines.
'The lines below each row will be pushed down by the tallest control
I hope this helps. I had no idea this stuff existed before at all. Here is the MSDN info about it: http://msdn.microsoft.com/en-us/library/aa221362%28v=office.11%29.aspx
OK...
1 - Go into Design view of your report
2 - Select ALL the textbox controls in the detail section that you want to be table like and ALL grow if any one grows.
3 - Right click on one of the selected textbox controls and select Layout -> Tabular.... but... now... after you have your textbox row controls as a tabular layout... You must do one thing more...
4 - Inside your reports FORMAT TAB properties... Set ALL PADDING properties to 0.00... 0.00 for Top Padding, 0.00 Right Padding, 0.00 Left Padding and 0.00 Bottom Padding. (default is usually around 0.0208)
5 - Please note that changing your textboxes to a Tabular Layout kinda throws your textboxes to the right (at least for me) so you may need to re-adjust them so they are aligned with your Page Header textboxes again (if you have any that you might be using to header name your table like columns).
6 - Make sure ALL SPACE is removed in the detail area by having the bottom bar (page or report footer) snugly up against the bottom of your Tabular Textbox Layout and also ditto with the upper detail bar (page or report header).
7 - Now when you look your report in print preview with max 200% or more zoom you WILL still see very very minor spaces between your cells in your layout but when you actually print they will be almost unnoticeable unless you take out a magnifying lens.
I found a solution for my situation but I would like to have a better one...
In my case, a TextBox at the left side is describing the content of 1 to 3 pictures on the right side. The TextBox, if enlarging more than the height of the first picture, would shift pictures 2 and 3 down, in spite of a properly designed Top-Attribute in the picture controls.
My solution: I put the height attribute of the text box to 15cm (e.g 2 Inch) and enable it as shrinkable.
However, strange, but this helps for positioning the Pictures at its desired Top-Locations... :-) as well as minimizing the horizontal space used.