Re: VFP9 Reports - HTML output



Stefan, that was absolutely perfect, thank you very much...

"Stefan Wuebbe" <stefan.wuebbe@xxxxxx> wrote in message
news:ua6sYjqYFHA.1092@xxxxxxxxxxxxxxxxxxxxxxx
>
> "Summertown" <mbond43@xxxxxxxxx> schrieb im Newsbeitrag
> news:d76nqs$bug$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > Just upgraded from VFP9 and find the new report features complicated.
Help
> > please to guide me to the simplest way of using an frx report file
produced
> > in VFP8 to ouput a report in HTML.
>
> The following examples assumes a folder D:\Temp to put the result files
there.
>
>
> * reportlistener_dh2_html.prg
> #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
> *eop
>
>
> hth
> -Stefan
>
>
> --
> |\_/| ------ ProLib - programmers liberty -----------------
> (.. ) Our MVPs and MCPs make the Fox run....
> - / See us at www.prolib.de or www.AFPages.de
> -----------------------------------------------------------
>


.