Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outputing a report in HTML format
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00658743
Message ID:
00660733
Vues:
31
>Thanks for your reply, Bob
>
>Basically all i am trying to do is output a simple 2 column report and then somehow convert it to a HTML page for my web site without haveing to manually add the HTML code....
>
>all the files i have tried so far seem to be way over my head and experience... you mentioned useing a template, could you elaborate further on this method?
>
>Thanks

Basic HTML File output:
lcHTML="<HTML><HEAD><TITLE>My Title</TITLE></HEAD><BODY>"
lcHTML=lcHTML+"<TABLE>"
SELECT MyTable
SCAN
   lcHTML=lcHTML+"<TR><TD>"+Field1+"</TD><TD>"+Field2+"</TD></TR>"
ENDSCAN
lcHTML=lcHTML+"</TABLE>"
lcHTML=lcHTML+"</BODY></HTML>"
STRTOFILE(lcHTML,"MyFile.HTM")
HTH :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform