Report Authors / Report Controls / Report Controls in Page/RDLX Report / Image
Image

The Image report control displays an image that you embed in the report, add to the project, store in a database, or access through a URL. You can choose the Image Source in the Properties panel after you place the Image report control on the report.

The supported image formats are Base64 string, Byte[], BMP, JPG/JPEG/JPE, GIF, PNG, EMF, WMF, and SVG.

Important Properties

By clicking on the Image control, you can set its properties in the Properties panel.

Property Description
AccessibleDescription Enter the alternative description of the control for use by accessibility client application. The property on exporting the report adds the ‘alternative text’ in PDF and ‘alt’ attribute in HTML.
Action From Navigation Dialog choose one of the actions to carry out at runtime.
MIMEType Choose MIME Type from the dropdown.
Size Enter the Width and Height of the image.
Sizing Specify the way an image should be sized within the image report control.
Source Select the source of the image from External, Embedded, or Database.
Value Depending on the Source chosen specify the path of the image.

Image Dialog Properties

You can set the Image properties in the Image dialog. To open it, with the Image selected on the report, under the Properties panel, click the Property dialog link. 

Name: Enter a name for the image that is unique within the report. This name can be called in code. You can only use underscore (_) as a special character in the Name field. Other special characters such as period (.), space ( ), forward slash (/), backslash (\), exclamation (!), and hyphen (-) are not supported.

Tooltip: A textual label for the report item used to include TITLE or ALT attributes in HTML reports.

Image Value: Enter the name of the image to display. Depending on the Image Source chosen below, you can give a path to the image, select an image to embed, or pull images from a database. This property also allows you to choose the <Data Visualizer...> option to launch a dialog that will let you build a data visualization expression.

Image Source: Select whether the image comes from a source that is External, Embedded, or Database.

MIME Type: Select the MIME type of the image chosen.

Image Features

Embedded Images

The benefit of using an embedded image is that there is no separate image file to locate or to keep track of when you move the report between projects. The drawback is that the larger the file size of the image you embed, the more inflated your report file size becomes.

To embed an image in your report:

  1. From the Report Explorer, right-click Embedded Images.
    Embedding an image into a report
  2. Select Add Embedded Image and navigate to an image file from your local files.
  3. Now that the image is embedded in the report and appears under Embedded Images, drag-drop the image to the design area.
    The MIMEType, Source, and Value properties are filled in automatically and the image file's data is stored in the report definition.

Data Visualizer Images

You can use a data visualizer to display data in small graphs that are easy to comprehend. To add a data visualizer image to your report:

  1. Select the Image control and in the Properties panel, drop down the Value property and select <Data Visualizer...>.
  2. In the Data Visualizers dialog that appears, select the Visualizer Type that you want to use - Icon Set, Range Bar, Data Bar, Gradient, or Hatch.
  3. Use expressions related to your data to set other values in the dialog. 

SVG Images

There are several cases where you can use an SVG image:

Image files with the mime-type image/svg+xml are allowed, which you can set in the MimeType property of the Image control.

See Also