SSRS report - linear-gradient background

mark goldin 696 Reputation points
2021-07-20T19:09:07.36+00:00

I need to a background with the following color:
background: linear-gradient(180deg, #005AFA 0%, #6400AF 100%);

Is it possible to do?

Thanks

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joyzhao-MSFT 15,631 Reputation points
    2021-07-21T01:42:18.89+00:00

    Hi @mark goldin
    Gradient colors are only supported in chart and gauge report items.

    As an alternative to using an image as a backgound, you can try creating a chart, set it's background to whatever gradient you want, hide all the chart elements so that you only see the gardient fill and use that chart as your report background.

    You could also set the embedded image with linear gradient as the background image.

    Best Regards,
    Joy


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. mark goldin 696 Reputation points
    2021-07-21T11:36:33.927+00:00

    Yes, I am trying to use a chart with a gradient background. I still have one problem. The area I am creating that background also needs to have a background image. I am adding it to the chart and it still works fine with one exception. I can't the background behind the image. Any idea?

    Also when I an setting up chart's background I am using this CSS:
    background: linear-gradient(180deg, #005AFA 0%, #6400AF 100%);
    and my settings are:
    116783-image.png

    Doing this am I using 0% and 100% properly? What about 180deg? Am I taking this into consideration?

    Thanks


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.