Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
551 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
External Images in SSRS Reports Part one of a two-part series of blogs |
---|
In an SSRS report you can display images stored in an external location. This blog explains how to show images from both the report server and external websites in your SSRS reports.
|
In an SSRS report you can display images from an external website. In the example below, we're displaying a list of films along with an image of the BBFC certificate awarded to each film:
The certificate logos shown here are stored in an external website.
To display an external image, you need to provide its URL. One way to find this is to inspect the image in a web browser. Here's how to do this in Google Chrome:
Right-click the image and choose Inspect.
Doing this allows you to see the HTML code of the webpage. You can use this to find the source URL of the image:
Look for the src attribute of the img element to see the URL of the image.
It's a good idea to store the URL of each image in your database. In the example below we've stored the URLs for six certificate logos:
Note that we've stored the full URL of each image.
To display the external images in a report, create a Report Server project using Visual Studio and add a report to the project. In the report, create a dataset which includes the image URL.
This dataset includes a field containing the image URL.
You can't display external website images in Report Builder so, if you want to see your images when designing your reports, make sure you use Visual Studio.
Next, we'll create a table to show a row for each film and insert an image into one of the table columns.
Right-click on a cell in the table and choose Insert | Image.
In the dialog box which appears, you can configure which image will be displayed.
Set the image source to External and then select the field containing the image URL.
Click OK to confirm your choices.
This is what the table should look like in design view.
When you preview the report, you should see your linked images.
The images displayed in the report.
Displaying images from an external website is all well and good, providing the owner of the website doesn't change anything! A safer option is to control the location of the image files you want to display by uploading them to the report server. The next part of this blog series shows you how.
Parts of this blog |
---|
|
Some other pages relevant to the above blogs include:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.