ActiveReports Developer 7
Shape
See Also Support Forum
ActiveReports Developer 7 > ActiveReports Developer Guide > Concepts > Page Report Concepts > Page Report Toolbox > Shape

Glossary Item Box

The Shape report control is used to display one of the available shape types on a report. You can add a shape report control to a report by dragging it from the toolbox and dropping it onto the report design surface. 

In the ShapeStyle property of the Shape report control, you can select Rectangle, RoundRect or Ellipse, or you can use an expression to assign fields, datasets, parameters, constants, operations or common values to it. You can highlight different sections or parts of a report using a shape report control. For example, you can use a Rectangle as border around different report controls or the entire page or you can use an Ellipse to highlight a note on your report.

If you choose RoundRect, you can use the RoundingRadius property to select how much to round the corners.

Shape Dialog

Properties for the Shape are available in the Shape dialog. To open it, with the Shape control selected on the report, under the Properties Window, click the Property dialog link.

The Shape dialog lets you set properties on the report control with the following pages.

Note: You can select <Expression...> within many of these properties to open the Expression Editor.

ShowGeneral

Name: Enter a name for the image that is unique within the report. This name can be called in code.

Shape Style: Choose Rectangle, RoundRect or Ellipse. If you choose RoundRect, a preview of the shape appears below where you can select whether to use the same radius or a different radius on the corners that you select with the adjacent checkboxes. Drag the yellow diamonds to set the amount of rounding to use.

ShowAppearance

Background

Color: Select a color to use for the background of the Shape.

Image: Enter an image to use for the background of the Shape.

Border

Style: Select a style for the border.

Width: Enter a value in points to set the width of the border.

Color: Select a color to use for the border, or select the <Expression...> option to open the Expression Editor and create an expression that evaluates to a .NET color.

ShowVisibility

Initial visibility

  • Visible: The shape is visible when the report runs.
  • Hidden: The shape is hidden when the report runs.
  • Expression: Use an expression with a Boolean result to decide whether the shape is visible. True for hidden, false for visible.

Visibility can be toggled by another report control: Select this check box to display a toggle shape next to another report control. This enables the drop-down box where you can specify the report control which, if clicked, toggles the visibility of the shape.

ShowNavigation

Document map label: Enter an expression to use as a label to represent this item in the table of contents (document map). 

Bookmark ID: Enter an expression to use as a locator for this shape. You will then be able to provide a bookmark link to this item from another report control using a Jump to bookmark action.

ShowData Output

Element name: Enter a name to be used in the XML output for this shape report control.

Output: Choose Auto, Yes, No, Contents Only to decide whether to include this Shape in the XML output. Choosing Auto exports the contents of the Shape report control.

See Also

©2014. ComponentOne, a division of GrapeCity. All rights reserved.