Extending Report Preview Functionality

In addition to the Report Designer's builder events, which are hooks into the report design process, Visual FoxPro also provides hooks into the process of running reports. These hooks are exposed through the ReportListener, an instance of which is used in object-assisted reporting.

There are two ways to enable object-assisted reporting:

  • SET REPORTBEHAVIOR 90

  • Write code that explicitly uses the OBJECT clause on the REPORT FORM Command.

The topics in this section introduce the preview container component used by the ReportListener class when rendering previews in object-assisted reporting, and how to leverage it in your applications.

In This Section

  • The Preview Container API
    Describes the properties and methods that a class must implement to be used as a Preview Container.
  • Creating a Custom Preview Container
    Describes how to replace the default preview container with your own custom component that can provide report preview functionality thoughout your application automatically when you SET REPORTBEHAVIOR 90.
  • Leveraging the Default Preview Container
    Describes the additional capabilities of the Preview Container component provided by the Preview Container Object Factory application shipped with Visual FoxPro and referenced by the _REPORTPREVIEW system variable, by default.

Related Sections

Understanding Report Builder Events

ReportListener Object

SET REPORTBEHAVIOR Command

REPORT FORM Command

_REPORTPREVIEW System Variable

Extending Report Output Functionality

Extending Reports at Design Time