Adding Images (Report Builder 2.0)

An image is a report item that contains a reference to an image that is embedded within the report, stored in a database, stored on the report server, or stored elsewhere on the Web. An image can be a logo or picture, or it can be a picture that is repeated with rows of data. You can also use an image as a background for certain report items.

When you use a server-based or other external image in a report, the image item contains a path that points to an image on the report server or wherever it exists on the Web. When you use an embedded image, however, the image data is stored within the report definition and does not exist as a separate file.

Server-based images work well for logos and static pictures that are shared among several reports or Web pages. Embedded images ensure that the images are always available to the report, but they cannot be shared. Report definitions with external images are smaller than definitions with embedded images.

Data-bound images can also be displayed from binary data stored in a database. For example, the pictures that appear alongside product names in a product list are database images.

Making an image available to a report is not the same as adding it to the report layout. To add an image to a report, drag the Image report item from the Insert tab to the report design surface. Use the Image Properties dialog box to control the way the image renders in the report.

To view instructions about adding an image to a report, see How to: Add an Image (Report Builder 2.0).

Embedding Images

You can embed images in a report so that all image data is stored within the report definition. When you embed an image, Report Builder 2.0 MIME-encodes the image and stores it as text in the report definition. Using an embedded image ensures that the image is always available to the report, but it also increases the size of the report definition.

To view instructions about embedding an image, see How to: Embed an Image in a Report (Report Builder 2.0).

External Images

You can include stored images in a report by specifying a URL to the image. When you use an external image in a report, the image source is set to External and the value for the image is the URL address to the image. For an image on a report server configured for native mode, use a relative path. For example, /images/image1.jpg is a relative path.

For an image published to a report server configured in SharePoint integrated mode, or an image anywhere else on the Web, use a fully qualified URL. For example, http://<SharePointservername>/<site>/Documents/images/image1.jpg.

When the report is run in Report Builder, preview uses the credentials of the user to display the image. When the report is run on the report server, the image in the report may not be displayed if the server credentials are not sufficient to access the image. In that case, contact your system administrator.

Background Images

You can use an image as a background image in the body of the report or in a rectangle, text box, list, matrix, or table. A background image and an image have similar properties. You can also specify how the image is repeated to fill the background of the item.

Note

Some rendering extensions, like the HTML rendering extension, render the background image for the report body in the body, the page header, and the page footer. You can define a separate background image for the page header and footer, but if no image is defined, the report uses the background image of the body. Other rendering extensions, like the Image rendering extension, do not render the body background image in the page header and footer.

To view instructions about adding a background image, see How to: Add a Background Image (Report Builder 2.0).

Data-bound Images

You can add images that are stored in a database to your report. You use the same Image report item as the one used for static images, but with a set of properties that indicate that the image is stored in a database. To view instructions about working with data-bound images, see How to: Add a Data-Bound Image (Report Builder 2.0).