chinacat456
asked on
SSRS 2005 Image - Fit Proportional and Center in table cell
I am developing a report in SSRS 2005 on which there is a table. Inside one of the table cells, I am displaying an image from the database. The actual image sizes are rather large and are not resizeable. And I need to fit the image inside a table cell that is 2 inches tall and 4 inches wide. The image must be centered inside the table cell. I have to set the Sizing property of the image to "FitProportional" so that it shrinks down proportionally to fit inside the cell; however, when I do this, the image does not remain centered.
How can I center an image on my report that is also sized by the "FitProportional" attribute?
Thank you in advance.
How can I center an image on my report that is also sized by the "FitProportional" attribute?
Thank you in advance.
ASKER
thank you, i had tried that already. that solution won't work for me, since it requires that you size your image control to be as large as your largest image from the database and then set the fit to "Clip". my database images are very large (i.e. 900 x 1200), so this option isn't feasible for me.
anyone else have any thoughts?
i have begun to create a custom assembly that will retrieve the image from the database and resize it using a method like this -- http://blog.justinholton.com/?tag=/c%23
i'm just not sure if i can return a byte[] from a custom assembly to an image control in SSRS.
anyone else have any thoughts?
i have begun to create a custom assembly that will retrieve the image from the database and resize it using a method like this -- http://blog.justinholton.com/?tag=/c%23
i'm just not sure if i can return a byte[] from a custom assembly to an image control in SSRS.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
http://blogs.msdn.com/chrishays/archive/2004/10/27/CenteredImages.aspx