Muokkaa

Jaa


Embed an image in a paginated report (Report Builder)

Applies to:  Microsoft Report Builder (SSRS)  Power BI Report Builder  Report Designer in SQL Server Data Tools

A paginated 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. The images embedded in a report are listed in the Report Data pane.

You might want to embed an image in the report definition before adding the image to the design surface. For more information, see Add a Background Image (Report Builder).

To embed an image in a report

  1. In report design view, on the Insert tab, click Image.

  2. On the design surface, click and then drag a box to the desired size of the image.

  3. In the General page of the Image Properties dialog box, type a name in the Name text box or accept the default.

  4. (Optional) In the ToolTip text box, type the text that you want to appear when the user hovers over the image in the rendered report.

  5. In Select the image source, select Embedded.

  6. Click the Import button next to the Use this image text box

  7. In Files of type, select the image file type, navigate to the file, and then click Open.

  8. In the Image Properties dialog box, click OK.

    The image is displayed in the box you drew on the design surface, and 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.

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