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:
Right click on your report and select Insert >> Picture
Double-click on the image that you wish to insert.
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:
Right click on your report and select Insert >> Picture
SINGLE-click on the image that you wish to insert to select it.
Click “Open”
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
Worked AOK for me. Check if you have all the latest patches. I've attached a screenshot in Crystal 2011 and saved the .rpt for you to try and open in Visual Studio 2010: http://speedy.sh/RGgfg/crimages.zip
The reason is because the format is not supported, I had exactly the same problem but when I saved the file as JPG it started working perfectly!.
i think crytal report does not accept some image formats but what i did when i encountered the problem was to
1. open the image with coreldraw
2. copy the image content of the image and paste it in the crystal report instead of using the insert tool on crystal report and it worked
hope this will also be helpul.
Related
I'm building a report in the report designer from Visual Studio 2013. There is a section in the report where I need to add an image, this image has to be data-bound (I already achieved this). The only problem is, that sometime this image has a null value, so no image is been rendered. If that happen I supposed to display an image that says "Coming Soon", the only problem is this image is not in the data base, so I have to add it from the archive directly.
My question is:
Is there a way to change how I add an image to a report during execution?
I mean, Can I have an expression to set a different source instead of a Database, either Embedded or External?
I will appreciate any help.
Ultimately you are looking for a dynamic image; I recommend setting to External and in the image source field, create an expression with an IsNothing check against your image source path (assuming it is the path you are supplying and not the image itself).
For example: Iif(IsNothing(Fields!ImageSource.Value), "ComingSoonImagePathOrName", Fields!ImageSource.Value)
A similar question and solution was presented here: Want to show dynamic image in SSRS report
In VS2010, I've created an rdlc report that I want to view using the reportviewer. On the report, I want to use a scanned image underneath all the text (since it must look like the agency's letterhead), and this image must take up the whole page. The problem is that the text boxes on the report are all bumped down beneath the image. Can someone help me figure out how to make this work?
Right click the image, select Layout, Send to Back.
I'm doing this in VS 2012 now, but I think it's the same in VS 2010.
Right click the body of your report (in design mode),
Select "Body Properties..." and from there you can specify a Background Image.
You can place text above the image at design time. When ReportViewer display the report, it will look bad, but if you export the report in PDF format will look the same as you wish.
I know my answer does not resolve the problem. After working a lot on the subject, it is all I could get.
I have now tried in VS2013. No change.
I'm designing an e-mail template for a company and it tests great in everything besides Outlook. For some reason the bottom images of the email look like they're loading half way and then stop. I've found information online that Outlook won't load images with a height greater than 1728px, but the tallest image we have is much shorter than that. There are images beyond 1728px on the page that are loading just fine, so I'm not sure that's the issue. Does anyone have any experience with this? Any advice would be helpful.
Hi Here is a quick solution for this to be done in the outlook.
Use photoshop and follow this steps:
Once the design is over, slice up the image parts / height(1728px as per yout example).
Save this as, File->Save for web and device. click save. you will get option under save box
Under format change this to HTML and image from drop down.
Save them in one folder. A new HTML file and image file will be created in this folder.
Open this HTML file in a browser.
Just copy and paste the content in the outlook using a single cell table.
That's you are done. Now your image will load without any problem.
I've been banging my head trying to find the cause of why my images weren't loading, heres my basic work flow.
create image in Photoshop CS5
export for web/device (PNG/GIF/JPG)
save to images folder
drag the images into visual studio with the
rest of them
Now I've been using this method for a very long time, and after returning from holidays I couldn't figure out why this wasn't working any more. When the page loads it shows the missing image icon. Firebug couldn't locate the image, CSS was not reading it neither would an <img> tag.
A LONG time later it turns out I found the root cause, my image was named "order_header_bg.png" if I dropped the word "order" from the title it appeared!
I can't figure out why its doing it, I can't find any docs on image naming conventions, so the only work around is not to include the word. Its not a problem but I'm more curious as to why is doesn't behave as expected. Is this unique to my environment?
Do you have any ad-blocking software installed on your machine? They can be rather aggressive about what they block.
I had a client who had Norton Ad Blocker installed and was reporting that she could not see the navigation on her site. Her particular problem was that she was running an advertising agency, and thus all of her links were deemed as spam.
To answer my own question: Its goosed.
I have some reports with many records. Those records have images. They were coming from a .NET Dataset object.
I was initially making the approach of getting the images' contents into the records using System.Byte[] Columns, but the reports took up too much time to load.
I did time profiling. It is not the dataset construction that takes too much.
I put on the table the hypothesis of the images being slowing the process.
So I tried a different approach: Instead of having pictures directly into the tables, I have filepaths.
Following the practic described in Crystal Reports User Guide, I inserted a OLE object of "Paintbrush Picture Type" and its Image's Graphic Location was ser to a database table field. Additionally I also defined a file hyperlink to be the same field.
I tried, it didn' t show the image. But clicking the hyperlink was OK.
So I added more two OLE object items in the report for testing: the first's Graphic location and hyperlink have the filepath of the first record's image. It is a .jpg file.
I created additionally a .bmp copy of that image and set the second item's filepaths to point to this image.
Tested again, hyperlinks work Ok, but no images shown directly in report .
When I click Preview on Visual Studio 2010 Crystal Reports designer I can see the images, but not in runtime.
So, what am I missing for the images to show?
additional info:
VS 2010 premium
.Net framework 4
Windows 7 64 bits
Crystal reports is integrated on Visual Studio
Thanks in advance,
Sérgio
After some frustrating times, it seems I have found a solution in 3 easy steps:
Uninstall every component of Crystal Reports for VS 2008
Reopen Visual Studio 2010
Clean & Rebuild Solution
If you are using CR as a component, during runtime you will notice that the top bar of the component is different: the icons have different design and at right it will say "SAP CRYSTAL REPORTS"