cancel
Showing results for 
Search instead for 
Did you mean: 

Maintaining aspect ratio

Former Member
0 Kudos

Post Author: QRedIT

CA Forum: General

Hi,

I'm having trouble maintaining the aspect ratio of images in my reports. Please let me explain what I am trying to do.I am using VB.Net 2005 to create reports with CR XI Developer Edition, using RDC. These reports contain BlobFieldObject objects that are bound to binary fields in a database containing the image data. Databases can be MS Access, MySQL or MS SQL. So far so good: the images are printed in the report.However, the images in the report are fixed size, while the size of the images in the database may vary.Given a certain width in the report I want the height of the BlobFieldObject to adjust accordingly, maintaining the original aspect ratio of the image. This is the part that gives me trouble. I have been playing around with the XScaling and YScaling properties of the object, but no luck.E.g. let's say the database contains an image with a size of 250x100 pixels (wxh).If I define the width of the BlobFieldObject to (let's say) 500 twips the height of the object is determined by the original size and shows at (let's say) 900 twips. This is clearly an incorrect aspect ratio.If I set the YScaling property equal to XScaling the picture will show at 500 twips x 500 twips. Incorrect aspect ratio as well.

So how can I achieve that the size of the object will be 500x200 twips for this image? And the image of the next database record having a size of 400x240 pixels shows in the report as 500x300 twips?

I hope I have described my problem clearly enough.

TIA,

Jos

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Please try this. Right Click on the blob field, and select Format Graphic... Check the Can Grow check box under the Common tab. This will allow the image to grow on the y axis. However, if you chose that option, the image might get very big.

Former Member
0 Kudos

That doesn't work for images that are pulling dynamically, and are various resolutions.

Former Member
0 Kudos

Hello K. Evans,

I have the same problem for images that are pulling dynamically and there are various resolutions. Did you find any solution?

Best

Felip

Former Member
0 Kudos

Same problem...very frustrating...any new clever solutions to maintaining aspect ratio and limiting dimensions of image blob?

Former Member
0 Kudos

Post Author: paddleeng

CA Forum: General

Hello All. I am having the same problem .... wanting to maintain the original aspect ratio of a dynamically referenced image file. Is this possible in CR XI???? This would appear to be basic functionality. All help is appreciated. DJ