Expand tablix upwards when height increases - reporting-services

I have a subreport that contains a small tablix at the bottom of the page. There is nothing above it, and it is inside of a rectangle that stretches to the top of the page.
As I add data, the tablix grows vertically downward, making two pages, but not using the whitespace above it.
How can I have the tablix always near the bottom of the page, and if it hits the bottom of the report, to start growing up?

I don't think you can.
Report items such as tablixes have two relevant properties:
Height;
Top (e.g. Position).
Only the first one can be dynamic. The latter can't be part of an expression. There also is not an option to set a fixed bottom (like you could do in CSS).

Related

MS ACCESS - Tabluar sub report gaps

I seem to have found an issue when producing a report with a subreport within it. In the subreport I have set the fields within the "details" heading to tabular and have set the margins & padding to 0cm. Is there a reason why this subreport is still applying vertical gaps between each row?
There's probably a small margin above/below the controls in the Detail section. Select the controls and set the Top property(this is not the same as the Top Margin and Top Padding, but actually the position) of these controls to zero(0). This will adjust the controls to the top of the Detail section. Drag the bottom of the Detail section towards the controls. This should eliminate the gap. Alternatively, after your set the Top property to zero, you can set the height of the controls to the height of the Detail section.
Also check if you have any grouping on each row with header/footer which could be the cause of the gap.
What you want to do is set the border style to transparent. Then set the Gridline Style for top, bottom, left and right to 'Solid'. Now set the Gridline Color to Black. Also set the Gridline Width Top, Bottom, Left and Right to Hairline (or thicker if you want).
If you look at the image, the redlines are the gridlines. And the black lines are the borders of the text boxes. You can see that even though I tried moving the text boxes right next to each other, the grid still adds its own gap. So the solution is to hide your borders and just use the grid for the border.

Place a logo at rdlc report so that it can update its position dynamically at the top of last column

I am working at a rdlc report and i want to Place a logo at the right most corner of the last column.
I placed it at fixed position at the top of last column. but when in a case a column hides in between than last column moves toward left but logo will remain at the same place and it creates a logo formatting issue.
please suggest an appropriate solution.
You have fallen foul of the inability of Reporting services to dynamically alter the location of items. It is not possible for you to automatically align this logo - without embedding it as part of a table. There are two ways around this problem.
Option 1
Add a new header row to your table. Merge the cells together. Insert a rectangle into it, and insert your logo on to this, as shown
The downside of this is when you hide a column, the last column expands to fill the new whitespace.
Option 2
Add a new header row to your table. Insert a rectangle into the furthest right column, and insert your logo on to this, as shown.
Notice how the logo moves with the columns
(4 columns visible)
(3 columns visible)
The downside of this however is that your final column must be the width of the logo, and must never be hidden, otherwise the logo will disappear.
Summary
These are the only workarounds I can think of. Hopefully one is suitable for you. As mentioned at the top SSRS really doesn't like dynamic layouting of objects!

Hiding a table in SSRS

I currently in between the development of a report. I have set of tables that needs to be hidden incase if values are not present.
As seen in the image, the second set of table should be hidden when there is no data in it. It shows the data obtained from the second row of the table.
=IIF(LOOKUP(2,Fields!RowNo.Value,Fields!SeqNo1.Value,"dsContractReceivablePerc")=0,TRUE,FALSE)
This was the condition that I gave for hiding the table.
But after deployment when I viewed my report, I found that even though my table was getting hidden, there was a large empty space left in its space.
Could anyone help me out here? Am I missing anything?
To remove the blank space, you can add a rectangle containing the 2 tables.
Then if the table is not visible, it will adjust the size accordingly.
The Report Design: Best Practices and Guidelines contains an interesting section called "Useful Tips for Report Design".
This page was published in 2005 but is still applicable.
Using Rectangles to Keep Objects Together
Rectangles in Reporting Services can be used either as graphical
elements or as containers of objects. As object containers, they keep
objects together on a page and control how object move and push each
other.
To keep multiple objects together on a page, put the objects within a
rectangle. You can then put a page break before or after the rectangle
by using the PageBreakAtStart or PageBreakAtEnd properties for the
rectangle. Using Rectangles to Control Item Growth and Displacement
Items within a rectangle become peers of each other and are governed
by the rules of how peer items are positioned on the page as they move
or grow. For example:
Items will push or displace each other within the rectangle.
Items will not push or displace items outside the rectangle, because they are not their peers.
If necessary, a rectangle will grow to accommodate the items it contains.
You can use this logic to your advantage when dealing with objects
that expand. For example:
If you want to leave a blank space in your report for a table to expand into, group the blank space and the table in the same
rectangle. When the table grows, it will push the blank space.
If you want to prevent a matrix from pushing items off the right edge of the page, put the matrix within a rectangle with blank space
to its right. Now, the matrix is no longer a peer to the other item on
the page and will not be able to push it until the matrix can no
longer be contained within its rectangle.

Access tabular report Can Grow wrapping text - I need expanding

I have an Access 2010 report that I've setup as tabular and set 2 columns with Can Grow and Can Shrink to Yes but instead of expanding the width it's instead wrapping the text. Is it possible to have it expand the width of the column instead of wrapping the text and expanding it's height?
I don't think Can Grow/Can Shrink are what you expect them to be. These properties only concern fitting controls to a page when printing. I suspect you want to edit the Horizontal Anchor property. You can set this to Left, Right, or Both.
What this will do is, say when set to Left, is bind the control to the left hand side of the Form/Report while leaving width constant.
When Right is set the control will move with the right side of the form/report and stay the same width.
When Both is set the control's width will change to maintain the same distance of the left side of the control to the left side of the form/report and same for the right side.

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.