SSRS hidden column creates extra blank page - reporting-services

I have a report with a Tablix where I would like it almost full page width. "Gross Pay" is visible or not based on a parameter. I have also added a blank column to the left of this which has the opposite visibility to "Gross Pay" as a work around for the fact that I can't resize tablix width dynamically so the whole tablix stays the same width.
This is all fine and works but spits out an extra page when saving to pdf. This is because my body width is greater than 21cm. Below is the tablix, the red line is where page end is.
My body width must be 24cm in the designer to accommodate this hidden field but will always display under 21cm in the end. Can I have a body width in the designer larger than the page size? Alternate solutions would also be appreciated.
Thanks!

I ended up removing the blank column and just using expressions for all fields on the "Gross Pay" column that would fill it as blank if appropriate parameter was set.

Related

Data not visible after adjusting the column width in SSRS designer

I have designed a SSRS report as shown below. If I preview the report without adjusting the column width I can see the data. But If I expand the column width of first column, few columns data is not showing. Need your input. Thanks

SSRS (ReportBuilder 3.0) - How to remove whitespace taken by a hidden Tablix?

In the SSRS report, I've a tablix which has a single row and a single column (single cell). That row has a single rectangle that contains other rectangles containing other elements. The visiblity expression is set at the tablix level (both tablix visibility and row visibility), but not at the contained rectangles etc. The tablix has a visibility expression set as:
=Fields!ShipmentType.Value<>"Sales
The tablix row also has its row visibility set as:
=IsNothing(Fields!Calc_ShipToAddress.Value)
I've checked the values of these fields and per the values the tablix must be hidden which it is, however, it is still taking whitespace on the PDF.
There are three other tablixes; all three have just the tablix visiblity set, but not the row visibility. Interestingly, these tablixes don't take the whitespace when hidden.
I've searched online various solutions including various posts on SO too, but none has worked for me so far. I've even set the visibility of the column for that tablix, but still it takes the whitespace.
I'm putting this as an answer for any future searches in the hope that it might help someone with a similar situation.
In my case, the reason for the top tablix to be always visible as white space (although all the text in it was hidden) was the height of the top tablix. That tablix was overlapping the next tablix by a small notch and hence was visible as a white space on the report. I zoomed to 400% for something else and accidentally found this overlap.
Once I fixed tablix's height, the report functioned as expected and the tablix was hidden completely (no white space).

Set Tablix row height to a specific number in SQL Server Report Builder 3.0?

I'm trying to set the row height of the detail row to a specific value, like 0.5 in. If I click on the Tablix handle for the detail row; it selects the row but the Size property does not expand for the Height property or allow entry for something like 0.5 in. in the Height property.
Outside of dragging the control to guesstimate a height is there a way to enter a specific number for the row height?
The height of any row in a Tablix can be adjusted by changing the height of a single cell in the row. All cells in that row will then take on the height of the last changed cell, i.e. if you change the height of a cell in the first column to 0.5” and then change a cell in the second column of the same row to 0.125” the entire row height will change to 0.125”. To change the row Height property in Report Builder or BIDS: Select a single cell, scroll down in the Properties window to the section ‘Position’, expand the subsection ‘Size’ and then edit ‘Height’.
A special note on Tablix row heights when the report is rendered; by default a row will adjust to the height of its content. Typically content is text and if the row height cannot accommodate a second line of text for long strings then the row will grow taller than the set row Height to accommodate the text. If the effect is not desirable then you can change the CanGrow property to False. To change the CanGrow property for a row: Select the row handle at the left to select all cells in that row, scroll down in the Properties window to the section ‘Genera’l and change’ CanGrow’ to False. This is most useful when you have a blank row in a Tablix that is being used for line spacing; otherwise the row will automatically take on the height of the font size even though there is no text, e.g. an empty row with font size 18 will not remain the height of 0.0625” when the report is rendered.
The same concept for rows holds true for columns when a cell’s Width is adjusted, except they cannot grow or shrink like the height can when the report is rendered. Also note that when cells are merged with the adjacent cells that typically the column that makes up the far right of the section will increase to the right when the merged cell’s width is increased. Therefore it is typically best to split the cells when adjusting column widths to avoid this and avoid columns that cannot be decreased in width.
To add to this, in Visual Studio 2010, click on a given cell in the tablix. Open the control Properties pane (ie View | Other Windows | Property Window ). Go to the Position | Size property. Set the cell to the desired height or width. As described by PerPlexSystem, this will affect the rest of the cells height or width in the row or column, respectively.

Repeat a vertical line on every page in Report Builder / SSRS

I wish to include a vertical line on every page of my report, which runs from the top to bottom of the report body. How can I achieve this?
I've tried using RepeatWith, but it doesn't seem to work, the line appears only on the first page.
Thanks
Is this for look and feel purposes only?
I would create an image with such line and use it as the body background. Or if you're using a tablix that spans across multiple pages, another idea would be to create an empty column on the tablix with a border on the left side.
And yet another idea would be to use a rectangle with a left/right border and place all your tablixes inside the rectangle as this would make the rectangle to be expanded to multiple pages keeping the border (the vertical line) on your report.
I don't think that you can tell SSRS to automatically repeat lines on multiple pages.
I've figured out a way to solve that problem (without using RepeatWith, RepeatOnNewPage or Report Background Image)
I wrote a simple code to add blank rows to the table in the body. The number of rows to be added will be determined by the body height and the height of a row.
For example, if the body height is 6" and height of a row is 0.5" then a total of 12 rows can be fitted into one page. So if your table has 4 rows then add 8 extra black rows so as to make the table height equal to the report body.
If the number of rows is more than 12, say 15, then you'll add [12 - (15 mod 12)] rows
, i.e. 9 blank rows.
And you can have side borders on any of the columns as required, resulting in a vertical line running throughout the page.

changing tablix width in reports

In MS Reports I need to hide the columns in the tablix, but I need to keep the tablix width as it was. By default, if I hide the columns in the tablix it will automatically reduce the width.
I also need to increase some other columns width when I hide the columns.
I will add some Screenshot here.
This is the Original report.
So I need to hide all columns that has the value zero. So I did it and I got the result as
So now I want to keep the tablix width as it was in the original report by adding space (increase the width ) of the "Design NO" column (2nd Column) .
Pls help me ,
Thank you..!!
The only way to hold the tablix width is to have something occupy the space. I suggest using conditional formatting to use a white font. If you don't have data for that cell, use an expression that checks if the field that is normally there is empty and return a constant value that gives you the width you need. If you need to increase the width of other columns, you're going to have to add embedded spaces or something. The dynamic sizing of columns depends on having something occupy the space, even if it's spaces or white text.