How to: Embed an Image in a Report Definition (Reporting Services)
A report definition can include an image embedded in binary format. Embedded images ensure that the image is always available to a report, but can affect the size of the report definition. To view the list of images embedded in a report, use the Report Data pane. After you add an embedded image to a report definition, you must still add the image to the report. For more information, see How to: Add an Image (Reporting Services).
To embed an image in a report
In Design view, in the Report Data pane, right-click the Images node, and then click Add Image.
Note
If the Report Data pane is not visible, on the View tab, click Report Data.
In the Image Properties dialog box, type the name in the Name text box or accept the default.
In the ToolTip text box, type a tooltip that you want to appear when the user hovers a mouse over the image in the rendered report.
In Select the image source, select Embedded from the drop-down list.
In the Use this image text box, type the path to the image file.
Alternatively, click Import, navigate to the file, and then click Open. In Files of type, select the image file type, select the file, and then click Open. Click OK.
The file is displayed under the Images folder in the Report Data pane.
Note
The MIME type is derived when the image is imported. To change the MIME type, see the next procedure.
To add the image to the report, drag the image from the Report Data pane to the design surface. The Image Properties dialog box opens.
Click OK.
To change the MIME type of an imported image
Open the report in Design view.
Select the image on the design surface. The Properties pane displays the image properties.
Note
If the Properties pane is not visible, on the View tab, click Property Pane.
Click in the text box next to the MIMEType property and select a new MIME type from the drop-down list.
See Also
Tasks
How to: Add a Data-Bound Image (Reporting Services)
Reference
Image Properties Dialog Box, General