How to: Display Images in an Auto Design

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

You can display images along with the data in a list or table data region, as well as in group headers and group footers. You can also display images in row groupings within a matrix data region. The following procedures explain how to display images in an auto design report.

To display an image in a list or table data region

  1. In Model Editor, expand the node for the report, and then expand the Designs node.

  2. Expand the node for the auto design that you want to work with, and then expand the node for the data region.

  3. Right-click the Data node, point to Add, and then click Image.

  4. Type a name for the image.

  5. Select the node for the image.

  6. In the Properties window, specify values for the following properties.

    Property

    Description

    Source

    The source type of the image. For example, you can specify Embedded or Database. For more information, see Report Images Overview.

    MimeType

    The MIME type for the image. For example, image/gif or image/bmp.

    Expression

    A name or expression that identifies the image.

    • If the Source property is set to Embedded, you can specify the name of the image as it appears in the model. Or, you can specify an expression that evaluates to a name of an image, such as =IIF(Fields!Status.Value = 0, "GreenIcon", IIF(Fields!Status.Value = 1, "YellowIcon", "RedIcon")). In either case, the images must be added to the model or report in Model Editor. For more information, see How to: Add an Embedded Image.

    • If the Source property is set to Database, you must specify the field that contains the binary image data.

    Caption

    The text that displays for the image in the report.

    There are several additional properties for an image that display in the Properties window. For example, you can specify border style settings and image sizing information. Modify the remaining properties as appropriate.

  1. In Model Editor, expand the Groupings node for the data region.

  2. Expand the node for the grouping that you want to work with.

  3. Expand the Header or Footer node, right click the node for the row, point to Add, and then click Image.

  4. Select the node for the image and specify properties for the image in the Properties window. Be sure to specify a value for the Source, MimeType and Expression properties. For a description of these properties, see the first procedure in this topic.

To display an image in a row grouping in a matrix data region

  1. In Model Editor, expand the Row Groupings node for the data region.

  2. Expand the node for the grouping that you want to work with.

  3. Right-click the Data node, point to Add, and then click Image.

  4. Select the node for the image and specify properties for the image in the Properties window. Be sure to specify a value for the Source, MimeType and Expression properties. For a description of these properties, see the first procedure in this topic.

See also

Report Images Overview

How to: Add an Embedded Image

How to: Display Images in a Precision Design