Why SSRS colour from expression is not working? - reporting-services

I'm trying to have a dynamic color for some objects in my report (font color, background fill of text box etc.). I was trying to get it from either Parameter or Variable, but nothing worked, the color evaluates to White.
I used these for example:
=Variables!Hdr1_Color.Value
=Parameters!Hdr1_Color.Value
I even tried this: ="Green"
but none of these commands work, color stays White.
Example
Report Builder 15.0.19611.0
SQL Server 2019 Reporting Services
Version 15.0.7961.31630
Has anyone seen/solved something like that?

Related

Custom Code for Color Gradation in SSRS header

I'm trying to make SSRS custom report header. Refereed this link:
http://sqljason.com/2013/02/custom-code-for-color-gradation-in-ssrs.html
How can I put below color as my report header. Note: I would like to display the text, date and sum of count dynamically as well.
Specially looking for color attached below as my header color:
Do I need to write some custom code for header? How can I achieve this?
You could just create an image with the gradient in using one of many free image editors around. Then use that image in a rectangle in your header. You can then add the data as textboxes in the rectangle.
Be warned some rendered do not like overlapping objects so do a quick test and check in each of the desired output formats before you spend too much time on the report.

ssrs indicator arrows - is it possible to display in solid colour, rather than with grey shadow/gradient?

I want to add solid white indicator arrows into my ssrs report, but the closest I appear to be able to get is an arrow with a grey border/shadow/gradient effect, like this:
I've tried tweaking every property setting I can find to suppress this gradient effect, but no joy... Is there a way to configure these indicators to be a simple solid colour?
Alternatively, is it possible to upload my own image files into ssrs to use instead?
Appreciate any guidance.
To answer your alternate question, Yes, you can add your own images. They can either be embedded in the report or stored in a location that the report can access. Be careful because the location the report can access locally during development is not the same as the location once it's deployed. You can use an expression to change the image name so that it is dynamic.

Turn off background color for SQL strings in PHP Storm

is it possible to turn off background highlighting for SQL strings in PHP Storm ? I know I can turn off SQL language injection, but i would rather keep SQL syntax highlighting and just get rid of irritating background colors. Is it possible ?
Go to File -> Settings and then to Editor -> Colors & Fonts -> General. Click 'Injected language fragment' and simply untick the Background checkbox.
2 possible colors :
#52503A (gold/dark yellow) : color code for "Warning" because no Database is set. Go to View/Tool Windows/Database. Then click the "+" button to add a database and click many buttons up to the end.
#364135 (khaki/green) : color code for "Injected language fragment". Go to Settings/Editor/Colors & Fonts/General/Injected language fragment and change background color.For instance you can set a slightly darker color from the original
background for PHP. For Darcula theme base, I used #1A1C1C as a
darker color.
There may be more cases but these are the two I encoutered.
when sql dialect is not configured, sql strings glow in a annoying yellow. You have to set sql dialect for the file or project.
Go to File/Settings/Languages & Frameworks/SQL Dialects and then select your desired dialect. If you choose the root folder, you will be asked if you want to apply it to all files.
After that you can set the color for injected language fragment as explained by #chocochaos
In my case it was Editor > Inspections > SQL > No data sources configured. To find out what PhpStorm is warning about, you can click on the highlighted area and then on the hovering lightbulb to get the tooltip.

SSRS SubReport background color change

I need to change the background color of the subreport as per Master reports background color. How can I get the background of any text control in Master report.
Pass the background color through to the subreport as a parameter, use an expression to set the background color to the value of that parameter. You may find it easier to store the master reports background color in a parameter as well, since it sounds like it too may vary.

Applying a custom colour palette to charts built in SSRS and Crystal Reports

I have several charts built in SSRS and Crystal Reports. I'm trying to create a standard colour palette for them that matches our company brand standards, and want to apply a specific colour to each series value. For example, assume the series values are:
Watermelons (always make this pink),
Cherries (always make red),
Grapes (always make green), and
Lemons (always make yellow).
Is there a way to do this in either SSRS or Crystal Reports (v 11)?
Thank you very much.
I don't know Crystal, but for SSRS:
In the Chart definition for Values, you can set the Color property using an expression. The best way would be to pass in an extra column in the source Dataset which gives the required Color values. Then your Color expression can just refer to that column.
You will need to copy that Expression into to each series in each Chart object.