SSRS Tablix Header Row Formatting - formatting

I've got several reports and they have been built with various formatting. Nothing huge just the header row is different between them. I'd like to pick a standard and just update the reports so they all look the same. This can be done on a textbox by textbox basis - setting the font, font color, font size and background color.
It seems like I should be able to select more than one textbox and set the formatting on them all at once but the "textbox properties" item is disabled when I've selected more than one.
Any thoughts?

I wonder if you would be better off creating a report template that you could apply to all of your reports.
Here is a link explaining how to do that: http://weblogs.sqlteam.com/jhermiz/archive/2007/08/14/60283.aspx

never mind... it can easily be done by selecting the textboxes and then using the formatting toolbar at the top - just needed to ask for it to appear before my eyes.

Related

Just Hide a SSRS Tablix

I have a SSRS report consisting of several text boxes populated from a database. Some of the text fields are populated using VB code with parameters passed from values created using complex expressions in the Tablix cell. None of these parameters are displayed on the report
I do not want to show the Tablix on the report but can't seem to accomplish what I thought would be a simple task. I have set the hidden property on the Tablix to make it hidden, but when I do that and run the report my VB code does not function properly.
I have also tied making sure there are no borders enabled and set font and background colors to white on the Tablix but no luck.
Does anyone have any other suggestion to hide this element
Thanks
Perry
Thanks for your input guys. As #alejandro zuleta pointed out functions called while the Tablix was hidden were not working. No way to fix it. So to solve the problem I resized the Tablix to fit in the report without affecting the layout and then formatted everything in the Tablix to white so it does not show on the report. Not the best fix, but the only one that seemed available at this time.
Thanks
Perry

SSRS report, is there a way to switch templates based on configuration?

I have been googling for a good description of this but am not having much luck. I am pretty new to SSRS reports and I am probably not using the correct terminology here. If someone could point me towards an article that describes this that would suffice.
Basically I want to pull a bit into my report, and based on the value of that bit (or maybe a varchar) I want to render an address in different formats, or add/remove some sections completely form the report. I suspect this is basic functionality but am having trouble finding an example. Any help would be appreciated!
Thanks!
If you have a table/matrix the best place to put stuff like this is in columns that are outside of the detail or any groups at the top of the table. You can merge all the cells and add rectangles to add specific formatting. The neat part about using header columns is they can be hidden and the space used will not be rendered.
Say you have a table and Row1 and Row2 contain different formatting of the same data. If you have a report parameter named ShowFormat1 then you can optionally hide/show the correct row with formatting.
Click Row one and Set its Hidden property to =!Parameters!ShowFormat1.Value
Click Row two and Set its Hidden property to =Parameters!ShowFormat1.Value
The same concept can be applied to all elements if you are not using a table or matrix. Non-repeating controls, Rectangle or Image for example, can be hidden but the space used will still be rendered.

RDLC footer and dynamic visibility

tldr; Hide the left UI component on the footer and the right component moves over to the center.
I have a .rdlc file that I'm modifying in Visual Studio 2010 (and, sometimes, in Notepad++, as well). This particular report has a footer with two text boxes. The left side textbox contains information that is only sometimes relevant. When it is not relevant, it gets hidden. The right side textbox contains a page number.
So long as the left textbox is visible, everything is fine. However, when I hide the left textbox, the resulting output has the right textbox shifted over to the middle.
I don't want my page number shifted to the middle. How do I prevent this? I tried handling it with a table stretched all across the footer, but the footer apparently won't allow a table to be contained.
Apparently, nobody has any better ideas, so I'm going to say that my comment above is the answer:
"I ended up just creating a duplicate textbox to the one I was hiding and showing it when the original was hidden. This new one just contains a bunch of spaces rather than text. Kludgy, but it worked."
:)
I had the same issue. I just solved the issue be creating another Textbox and changed the hidden formula to vice versa.
Existing Text box (Moving) : =IIF(Parameters!PM_ReportType.Value = "ShowDiscrepancy",TRUE,FALSE)
Duplicate Text box Hide Formula = =IIF(Parameters!PM_ReportType.Value = "ShowDiscrepancy",FALSE,TRUE)
TB Moved to Center
Solved
Adjust the Hide formula

Reset Excel to default borders

Ok, so you know what a spreadsheet looks like when you open a new on in Excel; the borders are a light blue. These are only on the screen though, if you print the sheet it will not have borders. Say you've applied some various formatting to the sheet (background color, etc.) and those "default" borders are gone. My question is how to you get them back? Simply doing a Clear Formats will not always work.
Specifically I am talking about Excel 2007 but I believe all versions do this.
Any ideas?
Thanks,
Ryan
I had this issue, grid lines appeared to be missing on some cells.
Took me awhile to figure out that the color of those cells were white.
I clicked format cell, pattern and then selected "no color" (instead of white)
The the grid lines were visible again.
I hope this helps others as it took me a while to figure out why.
If you have applied border and/or fill on a cell, you need to clear both to go back to the default borders.
You may apply 'None' as the border option and expect the default borders to show, but it will not when the cell fill is white. It's not immediately obvious that it has a white fill, as unfilled cells are also white.
In this case, apply a 'No Fill' on the cells, and you will get the default borders back.
That's it. No messy format painting, no 'Clear Formats', none of those destructive methods. Easy, quick and painless.
Just go to Home> Cell Style > Normal
khir
If you're trying to do this from within Excel (rather than programmatically), follow these steps:
From the "Orb" menu on the ribbon, click the "Excel Options" button near the bottom of the menu.
In the list of choices at the left, select "Advanced".
Scroll down until you see the heading "Display options for this worksheet".
Select the checkbox labeled "Show guidelines".
My best answer for this is to simply use format painter. This might be a bit of a pain, but it works rather well as the problem you are facing is that Gridlines are covered by fill and other effects that are layered on top. Imagine putting a piece of white paper on top of your grid, the grid lines are present underneath, but they just don't show.
So try:
Clicking on a cell in the spreadsheet with the format that you want
Under the ribons, go to Home and format painter, it should be a smaller icon near the paste button.
Now highlight any cell that you want to apply this format to and it will set the font, color, background etc. to the same as the cell selected. The value will be preserved.
From my experience this is the easiest way to do this quickly. Especially when pasting things in and out of excel.
Again this is not the programmatic way of solving this problem.
Another way, There is check box Page Layout tab with Gridlines [ ] View which should be checked.
you just need to change the line color and you can apply it without problem
I was having the same trouble with importing from Excel 2010 to Access, appending an "identical" table. Early on in the wizard it said not all my column names were valid, even though I checked them. It turns out that it saw an "empty" column with no column name. When I tried using the import wizard to create a new table instead, it worked. However, I noticed that it had added a blank column to the right of my data and called it "Field30". So I went back to the spreadsheet I was trying to import, selected the columns to the right of the data that I wanted, right-clicked and chose "clear contents." That did the trick and I was able to import the spreadsheet, appending it to my table.
In Excel 2016 for Mac, I clicked the Excel menu, then clicked Preferencesā€¦
I then clicked the View icon.
whereupon I found a Gridlines Checkbox next to a Color Picker.
Regardless of whether the Gridlines checkbox os checked or not, if you change the color in the Color Picker dropdown menu, your cell borders will become that color. (I believe the change took place after i quit excel and opened the document the next day to continue working on it but I can't accurately remember.)
Changing the color picker back to Automatic will return your cell borders to the default (black) color on-the-fly.
N.B. Because I'm a newbie I cannot insert the screen shots I prepared ahead of time. šŸ˜ 
I understand this is an old post. But it is programmable. Otherwise make sure your fill is set to "No Fill" and your boarders are set to "No Boarder" via the user interface shown in the previous posts.
Sub clear()
Range("A4:G1000").Borders.LineStyle = xlNone
Range("A4:G1000").Interior.ColorIndex = xlNone
End Sub()
Select the cells that you need to affect the style and go to Home then click cell style and select Normal as show in the below snapshot

ReportViewer: two text colors, one cell

Is it possible to have 2 areas of text in one cell such that each can have a different color? You can do this in crystal reports but I cannot see a way to do this in ReportViewer. What it is doing is essentially highlighting an important text fragment if it appears in a cell description to draw the users attention. I am fairly new to reportviewer so it for now I am assuming it's my lack of knowledge that is making this difficult. I am using VS2010.
Thanks.
Turns out VicarlnATutu wasn't quite right.
You can do this, but only if you are using VS2010 (which I am) because it includes the new SSRS rendering engine for SQL-Server 2008. This allows you to put some basic HTML into a field and have multiple formats in one cell. For more info see below:
http://msdn.microsoft.com/en-us/library/cc645967.aspx
http://msdn.microsoft.com/en-us/library/cc627491.aspx
One thing that tripped me up is what they call a 'placeholder' in the MS documentation is the little bit of text inside the textbox control that shows up by default. You can select two different things on the control in VS2010. One is the textbox itself. Right clicking on the textbox gives you 'text box properties'. The other thing you can select is the default text INSIDE the textbox. Right clicking on this 'placeholder' text gives you a different context menu where you can select 'placeholder properties'. This is where you can change the cell to accept HTML.
No, unfortunately not. I don't know if there are custom controls out there for ReportViewer, but the built-in TextBox only supports setting color (be it Foreground or Background) for the entire thing.
ah, good to know. kind of a unintuitive way to tell a TextBox to display HTML, but nice to know that you can!