Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outputing a report in HTML format
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00658743
Message ID:
00660733
Views:
33
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform