Picture Box

<< Click to Display Table of Contents >>

RayVentory Data Hub > 12.5 u5 > Dashboards and Reports Customization Guide > Designing Reports > Use Report Elements > Use Basic Report Controls 

Picture Box

Overview

The Picture Box control allows you to embed static (stored with the report) or dynamic (obtained from a data source) images into a report.

 

To add this control to a report, drag the Picture Box item from the Toolbox onto the report's area.

 

eurd-web-add-picture-box-to-report

 

The Picture Box can display images with the following formats: BMP, JPG, JPEG, GIF, TIF, TIFF, PNG, ICO, DIB, RLE, JPE, JFIF, EMF, WMF, SVG.

 

Use the Image Source or Image URL property to specify the image the Picture Box displays. You can access these properties in the Actions category.

 

eurd-web-picture-box-image-property

 

The specified image is saved with the report if you use the Image Source property. If you use the Image URL property, only the path to the image is stored.

 

Bind to Data

You can use the Picture Box to display an image dynamically obtained from a data source. Click the Image Source property's marker and select Image Source Expression from the popup menu. Then select the data field in the invoked Expression Editor. You can use this editor to construct a binding expression that can include two or more data fields.

 

eurd-web-picture-box-bind-to-data

 

You can bind the Image URL property to data in the same way.

 

You can also drag and drop a field that contains image data from the Field List to create a new Picture Box bound to this field.

 

eurd-web-picture-box-drop-from-field-list

 

See the Bind Report Controls to Data topic for more information about how to create data-aware controls.

 

SVG Support Limitations

The Picture Box does not support the following SVG content:

 

Gradient colors

Text (you can convert text to curves as a workaround)

Animations

External .css styles

 

Export (except for PDF) has the following limitations:

 

SVG images are converted to metafiles because document viewers may not support SVG format.

SVG images are exported as PNG in the Microsoft Azure environment.

 

The Medium Trust permission level does not support SVG.

 

Image Size Modes

Use the Sizing property to specify an image's position in the Picture Box.

 

eurd-web-picture-box-image-size-modes

 

This control supports the following image size modes:

 

Normal
The image is displayed at the top left corner with its original dimensions. The image is clipped if it does not fit the control's boundaries.
 
eurd-web-picture-box-image-size-mode-normal
 

Stretch Image
The image is stretched or shrunk to fill the control's width and height.
 
eurd-web-picture-box-image-size-mode-stretch-image
 

Auto-Size
The control's dimensions are adjusted to the image's size.
 
eurd-web-picture-box-image-size-mode-auto-size
 

Zoom Image
The image is resized proportionally without clipping it to fit the control dimensions.
 
eurd-web-picture-box-image-size-mode-zoom-image
 

Squeeze
The image is centered and shown full-size if the control dimensions exceed the image size. Otherwise, the image is resized to fit the control's boundaries.
 
eurd-web-picture-box-image-size-mode-squeeze
 

Tile
The original image is replicated within the control starting from the top left corner. The replicated image is clipped if it does not fit the control's boundaries.
 
eurd-web-picture-box-image-size-mode-tile
 

You can also use the Image Alignment property in the Normal, Zoom Image and Squeeze modes to specify the alignment in relation to the control's boundaries.

 

Interactivity

You can add a possibility to load/change an image and/or draw a signature in a Picture Box when it is displayed in Print Preview. To do this, expand the Behavior category, select the Edit Options section and set the Enabled property to Yes.

 

eurd-web-picture-box-enable-content-editing

 

Click the Picture Box in a previewed document and an editor invokes.

 

eurd-web-picture-box-content-editing

 

tip

Tip:

You can draw borders for the Picture Box to make the editor visible in Print Preview, if an image is not specified.

 

Refer to the Edit Content in Print Preview topic to see how use this Picture Box mode.