How can you centre an image within the image control in SQL Server Reporting Services 2008?

Posted by Keith on Stack Overflow See other posts from Stack Overflow or by Keith
Published on 2010-04-14T14:13:51Z Indexed on 2010/04/15 7:03 UTC
Read the original article Hit count: 410

Filed under:
|
|

I have got an image in an image control on a report in SSRS 2008. The image is coming from an external source, and varies in width. I would like to centre the image within the control, but the image control does not have an equivalent of the text box's TextAlign property to allow right/left/center alignment to be done automatically.

I have seen methods to dynamically calculate the amount of left padding as a hack to solve this, http://blogs.msdn.com/chrishays/archive/2004/10/27/CenteredImages.aspx, but the solution gives an error in SSRS 2008, perhaps not surprising given the age of the article.

Has anybody got a solution to this for SSRS 2008?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about ssrs