cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports .NET Runtime SP29 - PNGs not scaling correctly anymore

dw53
Explorer
0 Kudos

Upgrading from SP28 to SP29, PNG image data with a DPI of 600 is not being scaled correctly any longer (image appears way too large on the report). The same image data scales fine on SP28. The same image saved as a JPG file works fine, too.

Is this a known issue of SP29 yet?

If needed, I can provide such PNG file. The specific one we have I cannot share due to privacy reasons.

Accepted Solutions (1)

Accepted Solutions (1)

It appears this is a regression issue so I'll escalate it to R&D.

Case - 27076/2021 PNG Image too big if printed with CRVS SP29

KBA - 3012958

I'll try to get this in SP 30, no promise though, it's closed now...

Check here for SP 30:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Thanks again

Don

Answers (4)

Answers (4)

ido_millet
Active Contributor

Here are the use instructions for an existing UFL function that materializes a database-stored image into a local image file.
Note that this function can also convert the image type (for example, from png to jpg).

Disclosure: I am the developer of that UFL. There are other UFLs listed here.

ido_millet
Active Contributor

A UFL can materialize a modified (size, and/or type) image from the database to the hard drive.

But it sounds like your best best is to simply roll back to earlier SP and wait for SP30.

ido_millet
Active Contributor
0 Kudos

At least one of the 3rd-party UFL listed here allows you to resize images on the fly (for example inside the 'Graphic Location' expression). Or you can create such a UFL yourself.

The added advantage is that by not requiring Crystal to resize the image, you get much lower memory consumption.

dw53
Explorer
0 Kudos

For our issue this cannot be used, as the image is never on disk (see my comment to Don Williams). It's only the DPI setting causing the issue, not the size of the image.

0 Kudos

Ran into this myself also.

Solution is to open the image and resize it to fit the page or within CR and resize it there.

Changes due to Third Party dependencies.

Don

dw53
Explorer
0 Kudos

Thank you for the response.

Is there anything else that can be done? The image data is loaded dynamically into CR from a database field (BLOB field), so the size is variable and we don't necessarily have control over the images our customers use (plus the need to change hundreds of existing images that were working fine before).

SP28 scales the BLOB field to match the page size, SP29 keeps the full huge scale of the 600 DPI image.