syed abdul kather
syed abdul kather

Reputation:

How can I size imageboxes to the image dimensions in Crystal Reports?

How can I size imageboxes to the image dimensions in Crystal Reports? i am doing a project in tat i having 3 type of image with different size from db how can i set image

Upvotes: 0

Views: 13701

Answers (2)

Chris
Chris

Reputation: 1

I had this issue. I managed to solve it by File > Report Options > Retain Original Image Color Depth. For some reason Crystal sees the altered background colour as part of the image so when you resize it it doesn't alter the background. By removing the background it gets you around this issue in some instances.

Upvotes: 0

Emanuele Greco
Emanuele Greco

Reputation: 12721

i found the answer here

To make the image resize properly, you must perform the following steps in order:

  1. Set the image's EnableCanGrow to true
  2. Calculate and set Width and Height to the needed size
  3. Set the image's EnableCanGrow to false
  4. Fill the DataSet's image object with data
  5. Continue with normal report processing.

If you get these items in the wrong order, or skip an item, you will find that Crystal Reports scales the image in unexpected and unrecoverable ways.

Upvotes: 2

Related Questions