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
- In the Project Manager, select Reports.
- Choose New.
- Choose New Report.
- From the Report menu, choose Quick Report.
- Select the table you want to use, and then choose OK.
- Select the field layout, title, and alias options you want.
- If you want to select fields for the report, choose Fields and complete the Field Picker dialog box.
- 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
- Double-click the control.
- 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
Select the controls.
From the Edit menu, choose Copy then Paste.
A copy of the controls appears below the original set.
Drag the copy into position on the layout.
To delete controls
- Select the controls.
- 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 | Creating 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