Page 1 of 1

HTML template

Posted: Mon Sep 24, 2018 8:22 am
by Silvio.Falconi
It'is possible from a fwh prg open a Html ( template) and insert data from dbf ?
sample

<table width="100%" border="0" cellpadding="5" cellspacing="3">

<tr>
<th align="center"> <b>{!#1503!}</b></td>
</tr>

{INSERTTABLE}

</table>

Re: HTML template

Posted: Mon Sep 24, 2018 11:04 am
by dagiayunus
Dear Silvio

I use like

nHandle2:=fcreate("C:\PROGRA~1\APACHE~1\Apache2\htdocs\report2.html",FC_NORMAL)
txt2:=strtran(txt2,"{{cPageTitle}}","Sale and Order Report Dt:"+dtoc(dDt))
txt2:=strtran(txt2,"{{SERVERSTATUS}}","Server Online Last update "+time())
fwrite(nHandle2,txt2)
fclose(nHandle2)

Regards
Yunus

Re: HTML template

Posted: Mon Sep 24, 2018 11:34 am
by Silvio.Falconi
THANKS

Re: HTML template

Posted: Tue Sep 25, 2018 11:51 am
by Silvio.Falconi
I NOT FOUND FCNORMAL value

Re: HTML template

Posted: Tue Sep 25, 2018 12:34 pm
by Enrico Maria Giordano
Please include fileio.ch.

EMG