Επεξεργασία

Κοινή χρήση μέσω


Add a data-bound image to 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 a reference to an image that is stored in a database. Such an image is known as a data-bound image. The pictures that appear alongside product names in a product list are examples of data-bound images.

Adding a data-bound image to a page header or page footer requires additional steps. For more information, see Page headers and footers (Report Builder).

Add a data-bound image

  1. In report design view, create a table with a data source connection and a dataset with a field that contains binary image data. For more information, see Tables (Report Builder).

  2. Insert a column in your table. For more information, see Insert or delete a column (Report Builder).

  3. On the Insert menu, select Image, and then choose in the data row of the new column.

  4. On the General page of the Image Properties dialog, enter a name in the Name text box or accept the default.

  5. (Optional) In the Tooltip text box, enter text to display when the user hovers over the image in the report rendered for HTML.

  6. In Select the image source, select Database.

  7. In Use this Field, select the field that contains images in your report.

  8. In Use this MIME type, select the MIME type, or file format, of the image-for example, bmp.

  9. Select OK.

    An image placeholder appears on the report design surface.