Microsoft KB Archive/191527

= How To Implement GenHTML Functionality in VFP Run-Time App =

Article ID: 191527

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q191527



SUMMARY
This article describes how to implement GenHTML functionality in Visual FoxPro 6.0 run-time applications (including APPs, EXEs, DLLs, and so forth).



MORE INFORMATION
 Add the GenHTML.prg file to your project. GenHTML.prg is located in the Visual FoxPro root directory specified by HOME. Add the _HTML.vcx file to your project. The _HTML.vcx class library is located in the Visual FoxPro Foundation Classes (FFC) directory specified by HOME+"FFC\".  If you plan to use any of the Web Wizard data page output layouts at run-time, you must also add the _HTMLSty.vcx file to your project. The _HTMLSty.vcx class library is located in the Visual FoxPro FFC directory specified by HOME+"FFC\". If you add the _HTMLSty.vcx file to your project, you need to add the following two lines of code to your startup program in order to avoid a project build error: FUNCTION taFields ENDFUNC   Generally, when you call GenHTML you do it by executing the following line: DO (_GENHTML) WITH The default value of _GENHTML in the development version of Visual FoxPro is HOME+"GENHTML.PRG". In run-time applications, you should manually set _GENHTML="GENHTML.PRG" at the start of your application so that the GENHTML.PRG program included in your application is properly executing at run-time using the same DO (_GENHTML) WITH commands.  Build the project into an APP, EXE, or DLL. Note that the _Base.vcx class library is automatically added to your project if it did not already exist in the project.

