Sdílet prostřednictvím


How to: Add, Move, or Delete a Text Box (Reporting Services)

Text boxes are the most commonly used report item in reports. You can add a text box to the report body to display information such as titles, parameter choices, and dates. A text box is automatically added for you to every table and matrix cell. To add a text box to a list, you must add the text box and then drag it into the list. Almost all report data displayed in a report with tables and matrices is the result of the report processor evaluating the contents of each text box in the report.

To view a hierarchical list of text boxes in a report, use the Document Outline pane. For more information, see Working with Report Designer in Business Intelligence Development Studio. To access the contents of a text box from an expression in the page header or page footer, use the built-in ReportItems collection. For more information, see Using the ReportItems Collection References in Expressions (Reporting Services).

To add a text box

  1. In Design view, click Text Box in the Toolbox.

  2. On the design surface, click and then drag a box to the desired size of the text box. Alternatively, click the design surface to create a text box of fixed size.

To add a text box in a List

  1. In Design view, click List in the Toolbox.

  2. On the design surface, click and then drag a box to the desired size of the list. Alternatively, click the design surface to create a list of fixed size.

  3. In the Toolbox, click Text Box.

  4. On the design surface, outside the list you added in step 1, click and then drag a box to the desired size of the text box. Alternatively, click the design surface to create a text box of fixed size.

  5. Click inside the text box to select it. Click the text box handle and drag it inside the list. To confirm the text box is correctly nested inside the list, select the text box. In the Properties pane, verify that the Parent property is the rectangle that was automatically added to the list data region.

    Note

    If the Properties pane is not visible, click Properties Window on the View menu.

To move a text box

  1. In Design view, click any empty space within the text box to select the text box.

  2. Click the text box handle and drag the text box to the new location. Alternatively, you can use the arrow keys to move a selected text box horizontally or vertically. To move the text box in smaller increments on the design surface, hold down CTRL plus the arrow keys.

To delete a text box

  • In Design view, right-click any empty space within the text box to select it, and then click Delete. Alternatively, click any empty space within the text box, and then press DELETE.