Genhtml.prg is the default program called by the _GENHTML system variable.
You can use _GenHTML to easily collect static data or to convert forms, labels, reports, and menus for viewing or transmitting in email or posting as web pages. You can use _GenHTML to share data with sites that dont have Visual FoxPro installed or to create templates for use in web pages.
GenHTML.PRG is accessed from the File menu when you choose the Save As HTML option. This menu option is available when the Form Designer, Label Designer, Menu Designer, or Report Designer is active or when a table or cursor is open in a Browse window. GenHTML uses the specified data source as the basis for generating an HTML document using classes contained in the _HTML.VCX class library.
You can run GenHTML from the Command window with the following syntax:
DO (_GENHTML) WITH <cSourceFile> <cOutFile>[, <nShow>][,<vIELink>][,
parameter | description |
cOutFile | Default = Specifies the name of the output file. When specify no extension, .HTM is the default. |
cSourceFile | Default: = Specifies the source file name, alias or object. |
nShow | Default: = 0 Specifies whether GenHTML will create and open the output file. tnShow can take the following values:
0 = Generate output file |
vIELink | Default: Specifies a link to an Internet Explorer object or web browser control. |
Object | Default: Specifies a reference to an Internet Explorer object. |
cStyle | Default: Specifies a Style ID in GenHTML.DBF. |
tcScope | Default: Specifies the scope of scan by setting the cScope property. |
cHTMLClass | Default: Specifies the class, and optionally, the class library that is instantiated for HTML object. |