Single Feature Attachment Control

Description

The Single Feature Attachment control is used to include a particular image attachment in a report, such as the feature's first image attachment.

The control displays only image attachments.

Properties Common to Most Controls

For more information about the properties listed below, see Properties Common to Most Controls.

For more information regarding each of the property groups, see the Control Reference.

Actions

Image Number

Type: Int32

Specifies which image to use. The first image attachment is 1, the second is 2, and so on.

The control does not count attachments that are not images.

Image Quality

Scales the quality of the image published in the control. The larger the image, the longer it will take to produce the report, and the larger the size of the report file will be. The Image Quality property provides options to scale down the quality of the image so that the report will generate more quickly and the size of the report file will be smaller.

The options for this control include:

  • Original: If the image is larger than the control, the image is resized to fit the bounds of the control using the maximum resolution possible. If the image is smaller than the bounds of the control, the image is displayed using the resolution from the file.
  • High: The image is scaled to 300 dpi.
  • Medium: The image is scaled to 150 dpi.
  • Low: The image is scaled to 96 dpi.
  • Very Low: The image is scaled to 72 dpi.

If the scale of the image is smaller than what is allowed by the bounds of the control, the image will not be scaled down any more.

Image scale cannot be increased to make the image larger than the original file.

Behavior

Can Grow

Type: Boolean

Sets whether the control's height can grow to display the contents at runtime.

Enabled by default.

If there are other controls below the selected control, they will be moved down to prevent overlapping.

Can Shrink

Type: Boolean

Sets whether the control's height can decrease if the contents do not completely fill the control at runtime.

If there are other controls below the current control, they will be moved up to remove the unused space.

Printing

Right to Left

Specifies the layout of the content within a report item.

The options include:

  • Inherit: The item inherits the printing configuration set at the parent level. This is the default.
  • Yes: The content is aligned to the right.
  • No: The content is aligned to the left.

Related Tutorials

Refer to the following resources for additional help on implementing this control: