How to: Add User Data to Report Controls

You can add user-defined data to a report control. User-defined data appears in the USER field of the report structure table (.frx or .lbx) and does not appear in the rendered output.

You can make use of the contents of the USER field in methods of a Reportlistener object when running a report or label in object-assisted mode. For more information, see Understanding Visual FoxPro Object-Assisted Reporting.

To add user-defined data to a report control

  1. Open the report or label in the appropriate designer.

  2. In the designer, double-click the report control to which you want to add user data.

    The properties dialog box for the report control opens.

    Note

    If the _REPORTBUILDER system variable is not set to the default Report Builder or is set to a third-party builder, the report control dialog box displays or a different dialog box might display. For more information, see _REPORTBUILDER System Variable.

    Note

    The dialog box that appears when there is no report builder set does not include the ability to edit the user-defined data.

  3. In the report control properties dialog box, click the Other tab if it is not selected.

  4. In the User data area, click Edit user data.

    The user data dialog box for the report band opens.

  5. In the user data dialog box, type the user-defined data you want for the report control.

  6. When you are finished, click OK.

For more information, see Other Tab, Report Control Properties Dialog Box (Report Builder).

See Also

Tasks

How to: Add Comments to Report Controls

Other Resources

Managing Report Controls
Configuring Report Controls
Working with Report Controls