Skip to main content

Loading Images in Report Designer

J
Written by Jordan Munoz

The articles in this section of the Knowledge Base involve working with the Image component for display in your reports. To access the Report Designer, select Microvellum Setup > Design Reports > Design (Report Type) Report. Select New Report to design a report from scratch or New Report from Existing. Select Designer to open Report Designer.

From this screen, add an Image component to your report, or edit an existing Image component.

Fig. 01 – Image Component

When it is necessary, images can be added to reports. Images are output using the Image component. The following types of images are supported: WMF, EMF, ICO, PNG, GIF, TIFF, JPEG, and BMP.

For an image to be printed, it is necessary to use the Image component, but an image must be loaded first. Images can be loaded in the following ways:

  1. From a URL.

  2. From the data field.

  3. From the report code.

  4. From a file.

Once the Image component has been placed, double-click on it to open the Image Editor Interface.

Loading an Image from a File

Using the File property, it is necessary to specify the file path that contains an image to be used. When the report renders, the report generator checks whether such a file exists and whether or not it contains an image. Then the image is printed.

Fig. 02 – File Tab of the Image Editor

Loading an Image with an Expression

An expression can be used to load an image. This is a convenient method for loading an image at times when storing images in files won’t work. The ability to load an image using an expression also adds the ability to apply conditions to when an image is loaded into a rendered report.

Fig. 03 – Expression Tab of the Image Editor

An expression can be used to load an image from a file. Use: {Image.FromFile(“c:\folder\image.png”)} substituting the actual file location.

Loading an Image from a Data Column

To load images from a data column, select the data column. The Data Column property is used for this.

Fig. 04 – Data Column Tab of the Image Editor

Loading an Image from a Hyperlink

To load images from a hyperlink, simply enter the hyperlink.

Fig. 05 – Hyperlink Tab of the Image Editor

Did this answer your question?