Mark
this is a small part of an article written by Cathy Pountney
It has what you want.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfoxgen9/html/VFP9Reports2.aspHTML Output
Another class included in the _ReportListener class library is one called htmlListener, which outputs a report to HTML. Here is an example of how to use this class.
*-- Make sure the HTML file doesn't exist
ERASE MyHTMLOutput.HTM
*-- Create the Listener class
SET CLASSLIB TO HOME() + 'FFC\_REPORTLISTENER'
ox = CREATEOBJECT('htmlListener')
*-- Set some properties
ox.TargetFileName = 'MyHTMLOutput'
*-- Run the report
REPORT FORM accounts OBJECT ox
Good luck
Hernan