ssrs : box sneaking to the left side of the footer - reporting-services

I'm creating a footer on my report, with 3 boxes. One on the left side, the second one in the middle and the last one on the right side.
The left box and right box are appearing on each page, respectively with the timestamp info for the left box and for the number of pages for the right box.
Middle box is appearing , at the last page of the report only.
I've put the following line for my middle box
iif(Globals!PageNumber = Globals!TotalPages, False, True)
The script says the middle box will only appear at the last page of the report
Last page is fine. Three boxes, standing side by side.
Issue lies from the first page to the penultimate page.
As the middle box does not appear until the last page, the right box is shifting to the left side , taking over the place where the middle box should be.
I tried to fix this issue, by putting all the boxes in a rectangle. Alas no good news
I set the option Keep Together = True but I don't think it will help. I keep looking for a solution.
Any insights you may have , are more than welcome
Cheers
Update :
This is my last page
My second page to my penultimate page look like this
I want the third box to be on the extreme right side , like on my last page

If I'm interpreting your question correctly, then the middle textbox has the following two properties set:
Visibility (hidden): =IIF(Globals!PageNumber = Globals!TotalPages, False, True)
The value is : "13779..." or some expression evaluating to this.
Try changing these properties to the following:
Visibility(hidden): False
Then
Value: =IIF(Globals!PageNumber <> Globals!TotalPages, Nothing, "13779...")
This way you are not hiding the textbox itself, just the text that it displays. Doing so should cause the textbox to align the same horizontally on all pages.

For the rightmost box make the right align the text.
Either by clicking on the menubar
OR
Change the textbox property TextAlign to Right
Another method will be to write an expression in Left padding for the rightmost text box.
Something Like
=iif(Globals!PageNumber = Globals!TotalPages, '2pt', '220pt')

Related

Correct bootstrap spacing and margins - Top portion of section is partially missing

Theme template: Porto (The work items on the right are aligned with the top of the viewable portion of the page). when selecting 'view all' on the left menu.
Site using the above template: DMMBlitz (The work items on the right are NOT aligned with the top of the viewable portion of the page), when selecting 'view all' on the left menu.
I've looked through https://getbootstrap.com/docs/5.0/utilities/spacing/ and tried about every single combination there is.
But I can't get a site to apply the correct spacing to the right slider work items as it is on the template, even though the bootstrap spacing appears to be the same.
What bootstrap spacing is required to fix this, and apply the correct spacing to the right side page items so it's spaced on the DMMBlitz site as per the template in use?
Try to add data-hash-offset="100" rather than data-hash-offset-lg="100" on view all <a> tag, may be it works.

SSRS Rendering On Server Adding Whitespace

I have a report, and on that report is a rectangle with a bunch of textboxes that are only visible based on a Visibility Expression for each box.
When I run my SSRS report on my desktop, or if I convert it to a PDF from the server, it looks fine. When a textbox is not visible, the box underneath moves up to fill the void.
When I just let it render through a browser on the server using (&rs:Command=Render) it's adding white space to move it to the middle of the rectangle so it is not formatting properly.
Here's what it looks like when only one of the lines is visible when it's on my desktop or when saved as a PDF (or image) file:
The red box is moved up to right underneath the black box when all the other boxes are not visible. That's what I want.
When it's rendered on the server, it looks like this:
It's moving the red box to the middle of the rectangle for some reason.
It's not the browser, I've tried 3 and it looks the same in all of them.
I've setting the consume container white space property to both true and false for the report and it makes no difference.
I can't add the textboxes to a tablix as this is a subreport that takes parameters and cannot have a datasource or dataset.
Any ideas on how to get rid of that whitespace when only one or a few lines are visible?
Thanks.

SSRS elements jumping of Position

I am currently having the following Problem:
I have 2 SSRS Texboxes which I place right above a Matrix:
Now as you can see the Textboxes are fixed in a standalone Position, and are all alone without anything else around them,
but guess what happens as soon as I click to Preview my Report, this happens:
The Textboxes Fly out of the Report,
and I have done everything to get them in place, I have tried getting them a little to the left, but in the end, after I got to where it would stop jumping, I got them so much left that they were in a place that I couldn't have them in.
Has anybody using Reporting Services ever experienced this?
Does anyone have a solution? Are there some properties I need to change in order for the Textboxes to stop Jumping?
Great Question, GBerisha! Essentially, you want the horizontal distance between the Heading Textbox and the two rightmost Textboxes to be fixed. There are two ways to accomplish this. The first would be to create a Rectangle from the Toolbox Menu and place the Heading Textbox and the two rightmost Textboxes inside that Rectangle. That will keep the expanding Matrix from pushing out the two rightmost Textboxes as it expands. The other way would be to create a Table, delete the Detail Row, and place the three Textboxes in the Table Header.

Report items affecting each others positions in SSRS 2008

I'm having trouble with some report items changing other items' positions when they are conditionally hidden.
I've been using Reporting Services 2000 for printing item price labels as PDFs, with the report consisting of a single table with a single cell for each item. The data fields and other items on the label are all placed inside a single rectangle. Because of the very specific layout required, some of the report items overlap in the designer in order to position correctly on the rendered PDF.
This has worked fine for several years, until we upgraded to SSRS 2008 and I had to migrate the report to the new version.
Now, suddenly, when certain items on the report are hidden (by an expression in the Hidden-property), certain other items shift their positions. In some cases, even the containing rectangle is resized.
After quite a bit of googling, I've come to the understanding that SSRS 2008 attempts to maintain the relative spacing between report items, so that if an item to the left of another one changes in size, the item to the right is adjusted accordingly.
Apparently, hiding an item equates to changing its size to zero, and so the item next to it is shifted left to fill the gap.
However, I do not want this behavior, since all items should stay in their predefined positions regardless of others.
So, does anyone know of a way to "fix" report item positions, so that they are not affected by hiding other items?
I've tried placing the items inside separate rectangles so as to group them, in the hope that only items inside the same rectangle can affect each other, but this does not seem to help.
Any ideas would be greatly appreciated.
In the side by side example, you can place the control that may be hidden into a rectangle big enough to hold both; but then put the other control that must stay in a fixed position BEHIND the rectangle (i.e. the parent of this control is the report rather than the rectangle).
If that's not enough, and the hidden and non-hidden items use the same dataset, you could (shudder) use a giant tablix control with a grouping of =1 and the right number of rows and columns to control the layout (because you can insert rectangles inside).
Some other tricks are to set the color/backgroundcolor properties to white (though in some rendering formats you can click and drag to highlight and still read what was there)... alternately you can go so far as to make the contents of controls all expression based, so as not to produce anything if a condition is met, and so it's basically invisible.
Another approach: create rectangles containing the fields you want to hide, then put a WHITE line across the entire bottom (or top) of the rectangle. This keeps the rectangle the same size even if the fields within it are hidden. A rectangle will shrink if the fields within it shrink, but the line spanning the entire rectangle prevents this from happening.
Not sure if this will help anyone else as it's a fairly specific requirement but it solved my variant of the OPs issue so here goes. I was designing an SSRS report to print labels (in my case the Avery 5164) and the users wanted to pick which labels on the sheet they would print because they may have already used one or two labels from a page. Because the positioning of the printed labels is important I needed them to stay in place even if the labels above them on the sheet were hidden. My solution was to create empty rectangles of the same size as the label and lay them directly on top of the existing rectangles. Even if I hide two, three, four, etc... labels, the rest will stay put.
Just draw a Rectangle, and slightly overlay the Objects with the Conditional Hidden expression with the position of your new empty Rectangle. Objects out to the right will be held in place by the Rectangle. No background colors or anything, just a Rectangle. Works vertically like if you have an address block and you want objects underneath the address lines to stay put. Like so...
enter image description here

Reporting services right item alignment

Is there a way to make items right aligned, say with the page or with some other item in a report, using reporting services 2008 ? Right now, I'm sort of emulating this behaviour by
shifting items to the right manually so that they look right aligned, however, when there's an item with a dynamic width (e.g. a tablix with data ir the horizontal direction), obviously, this approach fails. What is the correct way to do this ?
Unfortunately their is no horizontal align property available in the RDL spec (there is vertical align and text align), so there is no best way to do it.
You can employ some tricks to get the visual effects closer or perfect (textboxes work perfectly, tablix's are tougher and depend on a number of their settings):
- Place the right edge where you want it and drag the left edge to the maximum size you want to cater for, set the text align property to right, Set CanGrow to false (on a tablix you need to do this on the columns itself, where on textbox it is available directly): What this will do is allow for the text to appear right aligned correctly with growth handled and no export issues.
- Another trick is to place your elements in a rectangle which can help constrain it.
These options will work fine with dynamically generated RDL's, or setting in BIDS or Report Builder, as should all options, as it is the RDL which is the limiting factor not the tool/method which creates it.
Place the header and footer text-boxes on the right side of the report area away from sub-report alignment to bring them on RIGHT side in sub-report.