Avatar of chinacat456
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.
Web DevelopmentMicrosoft SQL Server 2005SSRS

Avatar of undefined
Last Comment
chinacat456

8/22/2022 - Mon
udaya kumar laligondla

chinacat456

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.
ASKER CERTIFIED SOLUTION
chinacat456

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23