Text on top of an image doesn't display but does print

Nick Ryan (NZ) 121 Reputation points
2021-05-26T20:09:31.533+00:00

I have an SSRS report with an Image. I've added 2 text boxes on top of that image. When I test the report in Visual Studio or deploy to an SSRS portal, the TEXT does not display. If I export to PDF, it does.

I don't think it makes any difference but the image is largely blue and the text is white.

I tried selecting the image and Send to Back or the text boxes and Bring to Front. I added a rectangle placed the text boxes in it and moved that onto the image. One suggestion I found said that the text boxes have to be added after the image so I added a new text box with text in it. Again that doesn't display but does print.

Instead of using an Image control, I made the image the background of the rectangle that contains all the controls in question. The text then displays but the issue is that the graphic I have is not sized appropriately so the lack of ability to scale means I only see part of it. I did try resizing the graphic externally but the software I have is only Paint and that doesn't allow precise enough resizing to fill the front page as cleanly as I'd like.

Some of the things I've tried as described above are ones I found in Stackoverflow but even those answers were qualified that they don't always work and they haven't for me.

So I can make it work by using the graphic as a fill but if someone knows how, I'd prefer to use an image object with text over the top.

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.
2,941 questions
0 comments No comments
{count} votes

Accepted answer
  1. Joyzhao-MSFT 15,596 Reputation points
    2021-05-27T06:36:16.967+00:00

    Hi @Nick Ryan (NZ) ,
    I inserted an image in the rectangle and added a text box at the top. When I preview, the text and image can be displayed normally.
    100053-04.jpg
    Here are my steps:

    • In the Report Data pane, right-click the Image node, and then click Add Image.
    • Insert rectangle and select it.
    • In the "Properties" window, expand BackgroundImage, then set the "Source" to "Embed" and the "Value" to the name of the image embedded in the report.
    • Add text box.

    In Reporting Services, we can change the BackgroundImage display by setting the BackgroundRepeat property. After embedding the image as a background image, the size of the image will be fixed from the original size. Therefore, if the image size is different from the report size, the image will not fit the report.
    In order to meet the requirements, I suggest that we can use other tools to change the size of the image to the value you need and adjust the size of the rectangle in the report at the same time. Then embed the image as the background of the rectangle.
    Hope this helps.
    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 additional answers

Sort by: Most helpful

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.