Conditional Formatting in Rdlc - rdlc

I want to set the color of column values in my rdlc table based on its value.Heres what I have done. =IIF(Fields!gpa.Value="Good",Fields!gpa.Color.Format("Red"),Fields!gpa.Color.Format("Blue"))
It only prints Red or Blue instead of actual value and Color of font remains same.What Am I doing wrong here and how can I fix it?.

You can set "Color" property of the cell using just color name or hex code:
=IIF(Fields!gpa.Value="Good","Red","Blue")
=IIF(Fields!gpa.Value="Good","#AF1E2D","#3232CC")
(codes used are just examples)

Related

Conditional Format Based on color code

I need to conditional format background color of Columns O:Y based on the color code AF:AK, is there a conditional format formula, or VBA code I can use.
Please ignore current format on columns O:X
You can't set the background colour to match the numbers directly in those cells with conditional formatting, though it is possible using VBA.
However, it is easier to check the value of the cells using the standard Conditional formatting rules and set the colours manually. This means you can have any colour matched to any number. Of course, you can choose the correct colour to fill if this is important to the solution.
I have set this up on a sheet below. I put the conditional formatting formula in the first cell (removing the $ symbol the system puts in for you) and copy across and down.

Assign cell background color to rgb from referenced cells

I'm working in excel on programatically setting a cell's background color to be a specific RGB color that is referenced in nearby cells. Here's what I'm trying to do:
You can see that I manually set the background color to be the RGB values specified in the cells in the same row on the left, as highlighted in the picture. The first purple cell has RGB (148,91,128).
I want to do this in VBA or maybe even conditional formatting if possible. So far I have tried this simple vba line of code to see if it would work:
Range("F1").Interior.Color = RGB(C1, D1, E1)
However this line of code sets the cell to have a black background like this:
If the code had worked correctly, this cell should have been a nearly white color, not black. Any ideas on why this isn't working? Am I making a mistake is the way I reference the cells for RGB?
It would be nice to be able to assign the range "F1:F__" to reference the cells to the left on each row too, not just one cell. Thanks!
Try this:
Range("F1").Interior.Color = RGB(Range("C1"), Range("D1"), Range("E1"))
In your version of code C1, D1, E1 are taken as variables and they have default value 0, so macro assign color equal to RGB(0, 0, 0) which is black.

Change font color for a row when the value is one specific value

I'm trying to change the font color on complete row when a value. I found the question and answer for changing the font color on a particular cell on another post here.
This was part of the other answer:
=IIF(Fields!Registrations.Value <> Previous(Fields!Registrations.Value),
"Black",
"Blue")
but it won't do what I need. Is it possible?
In order to change the color of an entire row, you would just select the entire row and choose expression under colors in the property menu, just as the article you linked described. If you want the color to change when that row has a particular value for a particular field, you would use an expression more like this:
=iif(yourField.Value = yourValue, yourColor1, yourColor2)

Excel userform label different color text

I am creating a userform in Excel, I have a Label with a large amount of text in. I need to have certain words in Bold and in Red color and the rest in standard black.
I can change the whole text color in the properties but not just certain words.
Is this possible and if so how would I do it?
Select certain word and fill with BOLD or make it RED
Also this depends on your Excel Version, I using Excel 2013
I do believe that it isn't possible..
You'll have to create different Labels in order to change only certain parts of your text color.

Using BIRT, how can I ensure that the background colour in a row is the same height in each cell in the row?

I have a BIRT report that I have set up to use conditional formatting so that the colour of the row alternates between grey and white. It works as expected except for the fact that the grey colour in a field with a string extends slightly below where the grey extends in a field with an integer. In other words, if the grey background is 1 inch high with an integer, it is 1.1 inch high with a string. I cannot see any differences in any of the margin or padding settings so I am not sure what would be causing this small issue.
It is easy to be confused with styling, because we can set style properties on rows, cells or data fields within cells.
As you describe this issue, i think you have not applied this conditional formatting on rows, but on cells or data fields.
When a BIRT table is selected in the outline view of Eclipse designer, we need to click on the left to select the whole row, and then define a conditional formatting. Thus, physically we can't have height differences between cells (at least in html format) because the style is applied on a "div" container.