Partilhar via


Adding, Copying, and Deleting Report Controls

You can insert the following types of report controls in your report and label layouts.

To display Choose this control
Table fields, variables, and other expressions Field
Literal text Label
Straight lines Line
Boxes and borders Rectangle
Circles, ovals, boxes with rounded corners, and borders Rounded Rectangle
Bitmaps or general fields Picture/OLE Bound

After placing the controls, you can change their format, size, color, position, and print options. You can also add a comment to each control for your reference only; it does not actually print in the report.

Adding Controls with Quick Report

Quick Report is a timesaving feature that automatically creates a simple report layout for you. You select basic report components, then Visual FoxPro creates the layout using your selections.

Tip   You can use Quick Report in existing report files if the Detail band is empty. If the Page Header band contains controls already, Quick Report preserves them.

To create a Quick Report

  1. In the Project Manager, select Reports.
  2. Choose New.
  3. Choose New Report.
  4. From the Report menu, choose Quick Report.
  5. Select the table you want to use, and then choose OK.
  6. Select the field layout, title, and alias options you want.
  7. If you want to select fields for the report, choose Fields and complete the Field Picker dialog box.
  8. Choose OK.

The options you choose are reflected in the report layout.

You can save, preview, and run the report as it is.

Note   Quick Reports do not add general fields to the report layout.

Adding a Comment to a Control

While creating or changing a control, you might want to include a description. The dialog box for each control offers a comment box. These comments are saved with the layout file but do not appear in the printed report or label.

To add a comment to a control

  1. Double-click the control.
  2. In the control's dialog box, enter your comment in the Comment box.

Choose OK.

Copying and Deleting Report Controls

You can copy and delete any of the controls on the layout individually or as a group.

To copy controls

  1. Select the controls.

  2. From the Edit menu, choose Copy then Paste.

    A copy of the controls appears below the original set.

  3. Drag the copy into position on the layout.

To delete controls

  1. Select the controls.
  2. From the Edit menu, choose Cut or press the DELETE key.

See Also

Data Placement Preparation | Using Expressions and Functions in Field Controls | Data Grouping in Layouts | Adding Reports and Labels | Defining the Report Page | Integrating Queries and Reports | Project Manager | Report Designer | Adding Label Controls | Adding a General Field | Selecting, Moving, and Resizing Report Controls