ActiveReports 8 > ActiveReports User Guide > Concepts > Page Report Concepts > Page Report Toolbox > Shape |
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.
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. |
General
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.
Appearance
Color: Select a color to use for the background of the Shape.
Image: Enter an image to use for the background of the Shape.
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.
Visibility
Initial visibility
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.
Navigation
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.
Data 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.