Are there specific requirements for images that are to be inserted into CR?
I’m trying to insert an image into Crystal reports, but nothing happens after I select my file. I have a different image that I’ve used for testing that inserts with no problems so I’m assuming that it has something to do with the JPG file settings when saving the image. Note that this is just a static logo for a page header – nothing is being dynamically loaded.
I know that GIFs cannot be used, so I’ve tried JPG and PNG to no avail. I’ve even saved my “working” image again through Photoshop and it will insert. I’ve then used those settings to save the non-working image, but that image wont insert. I’ve used Crystal Reports a lot in the past and this is the first time I’ve come across this issue and my searches lead me to a variety of resources for dynamic image inclusion, but nothing to for this hopefully simple issue.
I’m using Crystal Reports for Visual Studio 2010.
Link to images used in testing
After messing with this problem all day, I found out it’s a bug in the Crystal Reports IDE.
Here’s how to duplicate the issue:
Depending on your image and how the image was saved in Photoshop, it may or may not insert into the report. I’ve had mixed results and apparently some images work and some do not. I haven’t quite figured out the pattern yet, but I believe it has to do with the color profiles of the image. I probably won’t waste any more time investigating it, because the following resolution has worked for me every time and I can import every image that I’ve created in Photoshop regardless of how the image was saved and the settings used to save the images. (Assuming that they’re all JPGs, of course.)
Resolution:
The image should insert into the report properly.
It’s a subtle difference, but I hope this saves someone else a few hours of debugging.
Dave
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With