SSRS report produces blank/white spaces when column are hidden in tablix - reportingservices-2005

I have report developed in SSRS 2005. It is a simple and straight-forward report using a stored procedure to fetch the data and display. This report has 100 columns and there are no grouping or subreports etc.
But user has option to select/deselect the column names to show/hide on the report. When the user select to hide couple of columns report is giving me blank/white gaps when exported to pdf or any other formats.
Is there any solution to this?

You need to ensure that you are hiding the row or the column of the table and not simply the fields. Check HarlingtonTheWizard's post at the following link:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=109566
Once the rows/columns are hidden, the height/width will collapse.

I do not consider this as the best solution but is more of a hack but this is what I did in my situation.
1)Place a white rectangle in the desired cell. Make sure that the rectangle is white and has no borders.
2)Place the textbox inside the rectangle. Set an expression to hide and show this textbox.
3)Repeat for each cell in that column.
Therefore, when the textbox is shown it will look as normal. When the the textbox is hidden, the white rectangle will work as a "placeholder" to occupy the cell.

You can try setting Report property containerwhitespace="True".

Related

How to change a cells colour based on a cell on a seperate sheet being empty

I'm struggling to nail this. I'm trying to use conditional formatting on google sheets to change the colour of a group of cells based on a cell in a different sheet being empty.
So for example I have a sheet called "Controls" with an empty cell, M13, to write a persons name. Once that cell has had text inputted I would like a group of cells, BE2:BN25, to change colour to white so as effectively 'unlock' them for data entry.
I've tried =NOT(ISBLANK("Controls!M13")) but it's not changing colour once some text has been entered to that cell.
Is this possible on google sheets or am I just making a glaringly obvious error?
Thanks in advance for your help.
try:
=NOT(ISBLANK(INDIRECT("Controls!M13")))

Tableau cannot horizontally scroll in worksheets

I am using Tableau for data visualization and generating lists that can be exported to Excel.
However, when the amount of columns get too big, I cannot see all my columns in the view (They are there though). The problem is that there doesn't seem to be a horizontal scrollbar. I can scroll vertically through my rows, but I haven't found a way to do this horizontally to look through my columns, the same way you would do at the data source tab.
If anyone could help me to figure out how to achieve this that would be awesome! I am using Tableau Desktop version 2018.3 on a Mac.
Edit: The problem also seems to be on Windows and is not related to the maximum amount of columns or the view mode.
Example image of the described problem
You are not getting scrollbar because you are viewing it on a worksheet. Try putting it on the dashboard and set dashboard size to fixed and increase width to accommodate all columns.
now you will get horizontal scrollbar for sure
thanks
Besides updating the horizontal row/column label limit #Bernardo mentioned here:
You'll need to make sure you've have selected "Standard" from the display option list at the top of the screen. That options prevent Tableau from fitting everything into the height, width or view of your current display.
Tableau shows a horizontal scroll bar for measures, but not for dimensions. When only dimensions are included on either the Columns or Rows shelf, the lower horizontal scroll bar will not display. Dimensions are treated as headers for measure aggregations and do not generate a horizontal scroll bar when they exceed the width of the view.
To change the Table Layout and increase the number of columns and rows in your table, go to:
Analysis > Table Layout > Advanced
Set each of the Maximum values to 16, which is the limit allowed.

How to add patterns or stripes to SSRS data cells instead of a color

IN SSRS:
I can only add Solid color fills to the data cells inside a matrix.
How do I add Stripes or Patterns as background fill instead of a solid color.
Is there a particular color code like '#xxxx' for stripes?
There are certain rows in my report that need to have stripes or patterns as backgrou fill.
Thanks
I have found some methods around this:
1- You can use image gradients to fill text boxes by right-clicking the cell and selecting text box properties. You can use the Fill tab to select a small image or item that has a gradient or pattern and apply it within your cell(s)/report.
2 - Another approach is to use a combination of Font/Color/Bold/Italic/Underline and Boarder colors/weight to achieve your desired result.
3 - Apply a gradient-style scheme to your report by using one or more colors and dynamically changing the hue as you go up or down the report. That way, the top could be darker than the bottom, or vis-versa.
I hope this helps.
Numerous fonts can be used.
Open the Character Map
Select Arial in the Font drop down
Scroll to near the bottom, select the cross character
Hit the Select button a number of times, grab as many characters as the SSRS textbox may require to fill its width
Click copy
In SSRS select the textbox then Ctrl-P to paste
Experiment with font size and font color to get the desired effect
Setting padding to zero may help
Setting row CanGrow to False may help
I find there is a little gap between cells vertically but it is close to perfect for me. There is likely to be a character in Arial or another font that works even better.

What property makes a sub-report to grow or shrink?

Previously when developing in SSRS 2008 I do not recall having any problems with the sub-reports: they grew or shrunk automatically w/o me having to do anything special about that.
Now I am looking at a bunch of reports that were created from Crystal by running some "tool" (I was not told what that tool was). And their sub-reports residing in the tablix cells do not want to grow or shrink.
If a sub-report is larger than the cell it is housed in, only the very first line would show and the rest would be clipped. If the sub-report is empty and I enlarged its parent cell to accommodate the report should it have data, then it would not shrink.
The sub-report objects have no CanGrow or CanShrink properties, and the tablix cell housing the sub-report would not have a TextBox that would have that property.
I can't assume that MS intended the sub-reports to always have specific size, as that would be terminally stupid, but also cannot find a solution here or elsewhere.
False alarm! The conversion tool has set all cells of any tablix to CanGrow=False. There were cells before and after the sub-report cells that caused the sub-reports to have fixed size.
Setting all cells that were of TextBox kind to CanGrow=True fixed the issue and also fixed clipping of the regular text/numbers of course.

How to center the report title in RDLC file

I am trying to center the report title placed within report header on RDLC matrix report - this should have been quite straight-forward but I am struggling to achieve it.
I am using VS 2010 (SP1) report designer to edit the RDLC. The report is quite simple - it contains report header with two text-boxes and body containing matrix (cross-tab) report. Out of two Report Header text-boxes, one is used for display static report title while other is used to display the single report parameter.
The report content is as I want except I am unable to center the report title. The title get centered within the text-box width but I could not find a way to say that text-box should spawn entire page width. I cannot set text-box width to the page width because
if text-box width is set more than matrix width by say x inches then when report is rendered, content width gets enlarged by x inches from a rendered matrix resulting in page-width overlap.
it will need re-setting the text-box width if margins or page-size is changed
And a year and a half later... I used your solution but then found another one:
Clicking on the empty area of the report there is a property called ConsumeContainerWhitespace. It indicates wether white space to the right and below a matrix (or any content that can be resized) should be preserved. Might have other side effects though.
When the report gets wider than the page it looks like this in the viewer:
This will be printed on two pages and on each one the title will be centered.
Alas! got some time to play with RDLC - here's the work-around. Although, its not exactly what I want (a centered report title), its close enough!
Basic idea here is that matrix (cross-tab) report grows its width so you need to associate the report title with the matrix. So remove report header or page header and instead add one or more static row above the row-group in the matrix. Use these rows for Report tile and report parameters. By centering the report title text-box, you get some-what centered report title.

Resources