Share via


How to: Embed an Image in a Report (Report Builder 2.0)

A report can include an embedded image. Embedding an image ensures that the image is always available to a report, but can affect the size of the report definition, the file that defines the report. To view the list of images embedded in a report, use the Report Data pane.

Adding an embedded image is a two-step process: First you add the embedded image to the report definition; then you add the image to the report layout. For more information, see How to: Add an Image (Report Builder 2.0).

To embed an image in a report

  1. 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.

  2. In the Image Properties dialog box, type a name in the Name text box or accept the default.

  3. (optional) 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.

  4. In Select the image source, select Embedded from the drop-down list.

  5. 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.

  6. Click OK.

    The file is displayed under the Images folder in the Report Data pane.

    Note

    The MIME type (for example, bmp) is derived automatically when the image is imported. To change the MIME type, see the next procedure.

  7. To add the image to the report layout, drag the image from the Report Data pane to the design surface. The Image Properties dialog box opens.

  8. Click OK.

(optional) To change the MIME type of an imported image

  1. Open the report in Design view.

  2. 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 Properties.

  3. Click in the text box next to the MIMEType property and select a new MIME type from the drop-down list.