Sdílet prostřednictvím


How to: Add a Background Image (Reporting Services)

You can add a background image to a report item such as a rectangle or chart, or a report section such as the page header, page footer, report body, or rectangle. The background image can be a URL to an image on the report server, an image from a dataset field, or an image embedded in the report definition.

To add a background image

  1. In Design view, select the report item to which you want to add a background image.

    Note

    Background images apply to rectangle, text box, tablix, page header, page footer, report body, chart, and some parts of a chart, for example, a chart area. You can define a background image for any selected item on the report design surface that displays BackgroundImage in the Properties pane. If the Properties pane is not visible, from the View menu, click Properties Window.

  2. In the Properties pane, expand BackgroundImage, and then do the following:

    • For Source, select External, Embedded, or Database.

    • For Value, type or select an expression that evaluates to the source of the image.

      If the Source property is set to External, the expression must evaluate to a valid path to an image. This can be a static path to an image hosted on a report server, or it can be a path based on a field.

      If the Source property is set to Embedded, the expression must evaluate to the name of an image that is embedded in the report. If the Source property is set to Database, the expression must evaluate to a field that contains binary image data. For more information, see Adding Images to a Report.

    • For MIMEType, select the appropriate MIME type for the image.

      Note

      MIMEType applies only if the Source property is set to Database. If the Source property is set to External or Embedded, the value of MIMEType is ignored.

    • For BackgroundRepeat, select Repeat, NoRepeat, RepeatX, or RepeatY.

      For background images in a chart, BackgroundRepeat can be set to Fit, but not RepeatX or RepeatY.