How to save a report as an HTML file.
and what are the options to e-mail the report in VFP9?

Thanks, Eugene

Re: Save a report as HTML in VFP9 by Stefan

Stefan
Wed Mar 23 23:29:47 CST 2005


<ygorelik20@hotmail.com> schrieb im Newsbeitrag
news:1111629899.185382.283660@o13g2000cwo.googlegroups.com...
> How to save a report as an HTML file.
> and what are the options to e-mail the report in VFP9?

This example was originally written by Doug Hennig
>>
* reportlistener_dh2_html

#define RL_TYPE_HTML 5
#define RL_TYPE_XML 4

LOCAL oListener, cFile

oListener = .NULL.
cFile = HOME(2)+'solution\reports\colors.frx'

* HTML
DO (_reportoutput) WITH RL_TYPE_HTML, oListener
oListener.TargetFileName = 'd:\temp\test55.htm'
oListener.QuietMode = .T.
REPORT FORM (cFile) OBJECT oListener


* XML
DO (_reportoutput) WITH RL_TYPE_XML, oListener
oListener.TargetFileName = 'd:\temp\test55.xml'
oListener.QuietMode = .T.
oListener.XMLMode = 2
&& 0 = Data only
&& 1 = Layout only
&& 2 = both
REPORT FORM (cFile) OBJECT oListener

>>


hth
-Stefan


--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------