cancel
Showing results for 
Search instead for 
Did you mean: 

Image Scaling

Former Member
0 Kudos

To be brieft, I use VB6 and Crystal Reports 9. I need to dynamically include images in a report. I can load the images dynamically at run time, but I cannot scale the image(s).

My questions is, does Crystal Reports 11 support scaling of images at runtime or can you explain how to scale the images in Crystal 9?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

The following applies to CR 2008 and CR 2011 (currently supported). The detaisl of how CR 9 worked with images is a knowledge long lost or I don't remeber. You may want to do a bit of seaching (use teh search box in the top right corner), but I am not sure if you will fionad anything useful. The below will also most likely apply to CR XI.

General tips re. images:

Save the files a BMPs.

When .jpg image is inserted into Crystal Reports it is converted into bitmap format and as the result of the conversion the report may loose some quality, scale and otyher issues may arise... E.g.; Crystal Reports is not so good a graphics management tool

When an image is saved as a .bmp, then there is no conversion required and thus the quality of the image should be preserved.

Best practice: save the image with high resolution and required size as a .bmp format then insert this image into Crystal Reports.

One more thing. Many people like to use jpg files as they are smaller than bmp files. However, as far as Crystal Reports is concerned, this is inconsequential. The report file will be the same size if a file is inserted as a jpg or a bmp. This is due to the jpg conversion to bmp Crystal Reports does internally.

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Answers (1)

Answers (1)

0 Kudos

Hello,

Moved your post to the legacy SDK forum.

Assuming you are using the RDC ( craxdrt.dll ) ?

CR 9 did not have any scaling ability I believe... Solution was to scale all images to best suit the report designer. There were Report Creation API's available ( if you had a keycode licensed for it ) that would allow you to change the image object size but not sure if that would work for you.

I think your only option is to prescale the images before being used in the report.

Don