FRX to HTML Foundation Class

This class converts a Visual FoxPro report (.FRX) to HTML.

Category Internet

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Internet

Class

_frx2html

Base Class

Custom

Class Library

_internet.vcx

Parent Class

_custom

Sample

...\Samples\Solution\Ffc\dohtml.scx

Remarks

The class includes properties to control the scope and HTML generation. For more information, see Genhtml.prg.

Note

In Visual FoxPro 9, Genhtml.prg's FRX processing uses the ReportListener class you have registered with the current Report Output Application to provide HTML output. For more information, refer to ReportListener Foundation Classes.

To use this class, drag the class to a project or form. When you add the class to a form, Visual FoxPro opens a builder so you can specify the cSource, cOutFile, nGenOutput, and lAutonameOutput property values. When you drop the class on a project, you can choose to add the class or create a subclass.

Properties, events, and methods Description

cOutFile property

Specifies the name of the HTML file to create.

Default: ""

cSource property

Specifies the source file from which to generate HTML.

Default: ""

nGenOutput property

_GENHTML output options:

1 = Generate and display the output file in the Visual FoxPro editor.

Default: 20 = Generate output file.

lAutoNameOutput property

Specifies whether _GENHTML should automatically name the output file based on the source.

Default: .T.

cScope property

Specifies the scope (for example, NEXT or ALL) for the output.

Default: ""

GenHTML method

Generates HTML code by calling the Genhtml.prg program using properties specified in cSource, cOutput, and nGenOutFile.

Syntax: GenHTML( )

Return: none

Arguments: none

See Also

Reference

Visual FoxPro Foundation Classes A-Z
Genhtml.prg

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Other Resources

Foundation Class Samples
Report Output Application