How to place text on top of image in ReportViewer

Posted by Christoffer on Stack Overflow See other posts from Stack Overflow or by Christoffer
Published on 2010-05-05T06:06:03Z Indexed on 2010/05/05 6:08 UTC
Read the original article Hit count: 274

I feel very silly asking this, since it seems like it just should work, but I cannot make it work and cannot find anything in the documentation about this.

The problem: I'm developing an application in Visual Studio 2010 that is utilizing ReportViewer, rendering the report locally. In the report designer, I place a textbox on top of an image. This looks fine in the designer, but when rendering the report, the textbox is rendered below the image.

Now, before you suggest it, I have tried placing a textbox on top of a rectangle (or other control) with the BackgroundImage property set. This works. But: I cannot find a way to rescale the background image to fit the control. Setting a different dpi for the background image does nothing. Simply rescaling the image to a different resolution is not an option, since I eventually want to print the report.

Does anybody have a solution to this?

© Stack Overflow or respective owner

Related posts about reportviewer

Related posts about reports