Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Geneate HTML from report
Message
From
10/01/2005 13:44:19
 
 
To
10/01/2005 12:43:55
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00975714
Message ID:
00975739
Views:
22
Mark,

>Can someone please explain how to generate an html from VFP report?

Since you indicated VFP9, try this for starters (and read the excellent info in the VFP9 help file -- if you have the release version).
LOCAL olistener
* get a reference to the HTMLListener class
DO (_reportoutput) WITH 5, olistener
* or you can directly instantiate the HTMLListener
* from the FFC _reportlistener.vcx
* olistener = NEWOBJECT("HTMLListener", ;
*   HOME(0)+"ffc\_reportlistener.vcx")
* turn off UI feedback and user prompts at end of run
olistener.quietmode=.T.
* specify my own filename and location
olistener.targetfilename = "c:\htmltest.htm"
* run a report referencing the configured listener
REPORT FORM (_samples+"solution\reports\ledger.frx") ;
  OBJECT olistener
* show result in the browser
RUN /n Explorer.exe c:\htmltest.htm
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform