Embed an Image in a Report (Report Builder and SSRS)
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. 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 and SSRS).
[!UWAGA]
You can create and modify report definitions (.rdl) in Report Builder and in Report Designer in SQL Server Data Tools. Each authoring environment provides different ways to create, open, and save reports and related items. For more information, see Designing Reports in Report Designer and Report Builder (SSRS) on the Web at microsoft.com.
To embed an image in a report
In report design view, on the Insert tab, click Image.
On the design surface, click and then drag a box to the desired size of the image.
In the General page of the Image Properties dialog box, type a name in the Name text box or accept the default.
(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.
In Select the image source, select Embedded.
Click the Import button next to the Use this image text box
In Files of type, select the image file type, navigate to the file, and then click Open.
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.
[!UWAGA]
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
Open the report in Design view.
Select the image on the design surface. The Properties pane displays the image properties.
[!UWAGA]
If the Properties pane is not visible, on the View tab, click Properties.
Click in the text box next to the MIMEType property and select a new MIME type from the drop-down list.
Zobacz także
Zadania
Add a Data-Bound Image (Report Builder and SSRS)
Odwołanie
Image Properties Dialog Box, General (Report Builder and SSRS)