Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML inside the program

Status
Not open for further replies.

paulmtl

Programmer
Feb 25, 2005
27
CA
Hi all,

I know we can save myreport.frx as myreport.html while opening it.

How to do it inside the program and to call the browser to view immmediately ?

Any help or advice would be reallly appreciated ?
Tia
 
In VFP 9.0 there is a Soluiton Example that does just that.
Code:
loListener  = .NULL.
do (_reportoutput) with 5, loListener
loListener.TargetFileName = forcepath('MyReport.html', sys(2023))
loListener.QuietMode      = .T.
wait window 'Outputting to HTML...' nowait
erase (loListener.TargetFileName)
report form forcepath('EmployeesMD.FRX', lcDirectory) object loListener

* Display the results.

loShell = newobject('_shellexecute', home() + 'ffc\_environ.vcx')
loShell.ShellExecute(loListener.TargetFileName)
wait clear
Rick

 
Thanks a million for all to guide me to the right spot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top