When I set the database image Sizing property to 'Fit Proportional' and export the document to WORD some of the database images fail to render. If on the other hand the image sizing property is 'Fit to Size' then all the images always render when exported to WORD. I eliminated all report elements except the image in the body but the results are the same.
Additional Info: The image is not nested in a rectangle or table. The DB images originated as jpegs and are stored as VARCHAR(max).
I think the issue is more of a Word problem than SSRS. When you say "some" images fail to render when set to "Fit Proportional" that makes me think that the image is too large to fit on the page therefore not displaying.
I would guess the images that don't go beyond the margins of the page are the ones that display properly.
HTH
I also had this problem. I was trying to export to Word and some images were not showing while others were. I found this thread:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/211c2ee1-30a7-4c42-88bd-88333a6fe988/missing-images-in-headerfooter-when-exporting-to-word-in-ssrs-2008-r2?forum=sqlreportingservices
Someone suggesting reducing the image size before importing it into SSRS. That worked for me, so it might help you.
Related
I have observed abnormal behavior in my shop when bulk importing or uploading images through the backend. The images are filled in white to a certain size.
To solve that I have changed the size parameters in the image "product_default" in Design> Image settings.
When I did this, the uploaded image was displayed correctly, but when I clicked to display in full size, it was completely distorted.
I attach some explanatory screenshots.
Thanks in advance.
** SOLVED **
The solution I was found was change all dimension for all the images to preserve te square relation.
I've got a crystal report built from v. 14.0.
Inside the report I've got a picture object that I've set the scaling properties to 33%.
The graphic location is set to pull from our DB.
I have two different images that I need displayed there depending on parameters passed into the report.
They are both 300 DPI, 1950 x 319.
Of both images, one pulls in wrong. It seems like it's scaling to 33% OF whatever 33% of the original image size is. Basically looks like 1/3 of what it should look like.
The other image pulls in exactly how it should look # 33% scaled.
The scaling doesn't change in the picture object properties when each image is loaded, it stays # 33%. If I change the one that comes in wrong to 100% scaled, then it looks correct which is weird, because # 100% it should be way bigger.
I've tried copying the bad image into the good image and resaving but the same thing happens, the scaling gets set wrong.
I can't figure out what's different about the images that's causing this weird behavior.
I've tried saving the images to bmp format but the same thing continues to happen. I've saved the images with multiple versions of photoshop and still nothing changes.
Is anyone able to point me in the right direction here? Thank you.
After much research we've identified something in the exif info that is causing this issue.
There's a block in the image that doesn't work called app0 that contains the jpg file interchange format information. I don't know a whole lot about it other than we used an app called photostudio.exe to look at the exif info.
We then used a tool called exiftool to remove that block from the exif info.
After doing so, the image scaled perfectly to 33%.
It's almost as if Crystal is scaling, then looking at that first app0 exif block and failing, then scaling again (effectively just retrying their method), and looking at the next blocks without failing any further.
I've created a Google Spreadsheet with logo images in one column of cells, but when I try to create a table to add into my website the images do not display in the table.
I need them to display so The logos are visible within a webpage? Does anyone know why the images are not displaying in table format, or how I can fix this.
Not sure which method did you choose to display images. My solution worked for images embedded with the IMAGE function and not showing inside the new spreadsheets, but showing inside the old. I must admit I haven't tested it with embedded documents but it should work too:
SPACE character is an offending character in the new Google spreadsheets when embedding images using the IMAGE function. Replace it with another, 'safe' character like '-' or '_'
Not sure how much this helps, since I don't know what you did/did wrong, but here's a pasted table with images from the new Google Sheets. The only thing of note is that in the pasted table, all images scale to the cell size with aspect ratios retained, ignoring the parameters in the spreadsheet.
formula: =IMAGE("https://www.google.com/images/srpr/logo3w.png")
copy/pasted into document:
original spreadsheet:
I have a SSRS RDL that is formated to fit on a three column lable sheet. When exported to PDF the 2nd column is not populated and on the next page the 2nd column is the only column populated. This continues to happen for as much data as I have. Has anyone had any problems with this or might have an idea on where the problem might be?
These kinds of quirks are usually related to the margins. Make sure that the actual label area does not exceed the page size, accounting for the margins. Also, printer drivers can cause a similar issue because of content-to-page-size issues, where the report shows correct on-screen but when printing, shifts content to a new page.
This is because of page setup properties. For example if a page is set to letter size(8.5in X 11in) and left and right margins to 1 inch. then you have adjust you report body size to 6.5 inch or below, if it exceeds above 6.5 inch, then leads to split data to other pages when exported to PDF.
Is there any way in Crystal Reports(v11, if this matters) to prevent the images from stretching itself to fit in the whole OLE-object? I'm loading the images dynamically from a database and don't know their aspect ratio.
Thanks for help.
i found the answer here
To make the image resize properly, you must perform the following steps in order:
Set the image's EnableCanGrow to true
Calculate and set Width and Height to the needed size
Set the image's EnableCanGrow to false
Fill the DataSet's image object with data
Continue with normal report processing.
If you get these items in the wrong order, or skip an item, you will
find that Crystal Reports scales the image in unexpected and unrecoverable ways.
The Crystal OLE object, which shows pictures from files, can only be set programmatically so for a 'pull' type report, where you are supplying a dynamic image name, of either portrait or landscape orientation, at least one of those orientations will get squashed to fit. It is better, IMHO, to show thumbnails and then have a calculated hyperlink to show the real picture in some decent viewer. You will spend an unreasonable amount of time trying to get the OLE object that shows pictures to understand that your image has a different aspect ratio. As long as it is at least reasonably legible that may have to suffice.
I don't think Crystal can help you. Try looking for some kind of command-line based app on the internet which can automically resize pictures (add black space, reduce in a 1:1 ratio, etc). I'm sure they're out there.