Partager via


Output Object Foundation Class

This is a generic reporting object that provides a variety of report source and destination options from reports and labels or directly from a data source.

Category

Reporting

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Output

Class

_output

Base Class

Container

Class Library

_reports.vcx

Parent Class

_container

Sample

...\Samples\Solution\Ffc\output.scx

Remarks

To use, drop the class on a project or form or, from the Component Gallery Item Shortcut Menu, select Add to Project or Add to Form. When you add the class to a form, Visual FoxPro places the class on the form. You can then specify the appropriate property values and provide any necessary input and output objects. When you drop the class on a project, you can choose between adding the class or creating a subclass.

See Guidelines for Using Visual FoxPro Foundation Classesfor more information on using foundation classes.

Properties, Events, Methods

Description

aDestinations[1,2] property

The array of destinations.

Default: .F.

aOptions[1,2] property

The array of destination output options.

Default: .F.

cAlias property

Specifies the data source that is used for non-report/label output formats. This property defaults to the current alias, if any.

Default: ""

cDestination property

Specifies a list of available destinations that changes dynamically, depending on whether cReport, cAlias, or both contain values. The list of available destinations is stored in the aDestinations array.

Default: "PRINTREPORT"

cDisplayFontName property

Specifies an on-screen font for output; for example, when you issue BROWSE or when the _Showtext class is instantiated for text display.

Default: Courier New

cFieldList property

Specifies a comma-delimited list of fields or expressions. It affects only direct data sources (BROWSEs and LISTs).

Default: ""

cHtmlClass property

Specifies an optional HTML class and class library passed to _GENHTML.

Default: ""

cHtmlstyleid property

Specifies an optional HTML style passed to _GENHTML.

Default: ""

cOption property

Specifies the list of available options that changes dynamically to fit the current cDestination.

Default: WINDEFAULT

cReport property

Specifies a label or report form suitable for Visual FoxPro-formatted output.

Default: ""

cScope property

Specifies a macro-expanded string to be added to the command that executes the actual output. It must be a valid scope such as "FOR lExpression".

Default: ""

cTextfile property

Specifies the file name for all output destinations that go to disk, which include text files, printer-image files, and export formats.

Default: ""

cVFPPrinterName property

Specifies the name of the current Visual FoxPro default printer as distinct from the Windows default printer.

Default: ""

lAddSourceNameToDropdown property

Specifies whether some destinations display in the aDestinations array.

Default: .T.

lPreventSourceChanges property

Prevents source changes for cAlias or cReport.

Default: .F.

CopyTable method

Exports a table.

Syntax: CopyTable( )

Return: none

Arguments: none

GenHTML method

Generates HTML code by calling the Genhtml.prg program.

Syntax: GenHTML( )

Return: none

Arguments: none

Output method

Specifies the main method that is called to generate output based on settings.

Syntax: Output(liSelect)

Return: none

Arguments: liSelect specifies the output destination.

OutputToScreen method

Outputs to the screen.

Syntax: OutputToScreen( )

Return: none

Arguments: none

SetDestinations method

Evaluates the current environment to populate an array of output destinations.

Syntax: SetDestinations( )

Return: lSuccess 

Arguments: none

SetOptions method

Evaluates the current environment to populate an array of options for output destinations.

Syntax: SetOptions( )

Return: lSuccess

Arguments: none

cAlias_assign method

Internal to the class.

cDestination_assign method

Internal to the class.

cDisplayFontName_assign method

Internal to the class.

cOption_assign method

Internal to the class.

cReport_assign method

Internal to the class.

cScope_assign method

Internal to the class.

cVFPPrinterName_access method

Internal to the class.

lPreventSourceChanges_assign method

Internal to the class.

PrintList method

Internal to the class.

PrintReport method

Internal to the class.

SetOutputPrinter method

Internal to the class.

SetVFPPrinter method

Internal to the class.

See Also

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Foundation Class Samples