Crystal Reports will insert certain images, but not others

Are there any special requirements for images that need to be inserted in CR?

I am trying to insert an image into Crystal reports, but nothing happens after selecting my file. I have another image that Ive used to test these inserts without problems, so I assume that it has something to do with the settings of the JPG file when saving the image. Please note that this is only a static logo for the page title - nothing is dynamically loading.

I know GIF cannot be used, so Ive tried using JPG and PNG. Ive even saved my β€œworking” image again through Photoshop, and it will be inserted. Ive then used these settings to save a non-working image, but this image will not be inserted. Ive often used Crystal Reports in the past, and this is the first time Ive encountered this problem, and my search queries lead me to various resources for dynamically including images, but for this, I hope, there is no simple problem.

I am using Crystal Reports for Visual Studio 2010.

Link to images used in testing

+6
source share
4 answers

After I ran into this problem all day, I found its error in the Crystal Reports IDE.

Here's how to duplicate the problem:

  • Right-click on your report and select Insert β†’ Image
  • Double-click the image you want to insert.

Depending on your image and how the image was saved in Photoshop, it may or may not be inserted into the report. I had mixed results, and apparently some images work and some do not. I still do not understand the template, but I believe that it is related to the color profiles of the image. I probably won’t spend time studying this issue anymore, because it worked for me every time, and I can import every image I created in Photoshop, regardless of how the image was saved and the settings used for save images. (Suppose they are all JPGs, of course.)

Resolution:

  • Right-click on your report and select Insert β†’ Image
  • SINGLE - Click on the image you want to insert to select it.
  • Click "Open"

The image should correctly insert into the report.

Its a subtle difference, but I hope this saves someone else a few hours of debugging.

Dave

+24
source

AOK worked for me. Check if you have all the latest fixes. I attached a screenshot in Crystal 2011 and saved .rpt for you to try and open in Visual Studio 2010: http://speedy.sh/RGgfg/crimages.zip

enter image description here

0
source

The reason is that the format is not supported, I had exactly the same problem, but when I saved the file as JPG, it started working fine!

0
source

I think the crytal report does not accept some image formats, but what I did when I ran into the problem was 1. open the image using coreldraw 2. copy the contents of the image image and paste it into the crystal report instead of using the paste tool in crystal report and it worked

hope this helps too.

0
source

Source: https://habr.com/ru/post/913434/


All Articles