Crystal reports image

Is there any way in crystal reports (v11, if that matters) to prevent the images from stretching to fit the entire OLE object? im dynamically loads images from a database and does not know their aspect ratio.

thanks for the help.

+4
source share
3 answers

I found the answer here

To resize the image correctly, you must follow these steps:

  • Set the EnableCanGrow image to true
  • Calculate and set the width and height to the required size
  • Set the EnableCanGrow image to false
  • Fill a DataSet Image Object with Data
  • Continue normal reporting processing.

If you get these items in the wrong order or skip an item, you are Crystal Reports scaling the image in an unexpected and incorrigible way.

+2
source

A Crystal OLE object that displays images from files can be set programmatically, so for a pull report in which you specify a dynamic image name, whether portrait or landscape, at least one of these orientations will be crushed to fit . It’s better, IMHO, to show thumbnails, and then calculate a hyperlink to show the real picture in some decent viewer. You will spend an unreasonable amount of time trying to get an OLE object that shows photos to understand that your image has a different format. So far this is at least reasonably legible, which may be enough.

+2
source

I don't think Crystal can help you. Try to find some command-line application on the Internet that can automatically resize images (add black space, reduce it in a 1: 1 ratio, etc.). I'm sure they are there.

0
source

All Articles