How to place text on top of an image in ReportViewer

I am asking this very stupidly, because it seems that it just needs to work, but I cannot get it to work and I can not find anything in the documentation about it.

Problem: I am developing an application in Visual Studio 2010 that uses ReportViewer, doing a report locally. In the report designer, I put a text box on top of the image. This looks great in the designer, but when rendering a report, a text box appears below the image.

Now, before you suggest this, I tried to place a text box on top of a rectangle (or other control) with the BackgroundImage property set. It works. But: I can't find a way to resize the background image to fit the control. Setting a different dpi for the background image does nothing. Simply scaling an image to a different resolution is not an option, because in the end I want to print a report.

Does anyone have a solution?

+4
source share
1 answer

It is impossible if the image and text are selected separately.

Just think of the reporting service as a matrix, such as excel, and only one element can be in each space. This is also true, as when rendering a report, it is performed accordingly.

+1
source

Source: https://habr.com/ru/post/1308853/


All Articles