Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to do this...
Message
De
04/09/2002 18:38:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00696451
Message ID:
00696894
Vues:
19
>>
>>OK, so how do I create an HTML report so I can FTP it?
>>
>>Sandi
>Sandi,
>
>Here's some quick and dirty code you can expand on;
>
>
>
>create cursor mycursor (cfield1 c(10), nfield2 n(10))
>
>FOR i = 1 TO 10
>	m.cfield1 = TRANSFORM((RAND(i+10)*100)-i)
>	m.nfield2 = RAND(i+10)*100
>	INSERT INTO mycursor FROM memvar
>NEXT i
>
>lchtml = '<html><body><table border=1>'
>select mycursor
>go top
>scan
>  lchtml = lchtml + '<tr>'
>    lchtml = lchtml + '<td><font face=arial><b>' + allt(mycursor.cfield1) + '</b></font></td>'

>    lchtml = lchtml + '<td><font face=courier>' + trans(mycursor.nfield2) + '</font></td>'
>  lchtml = lchtml + '</tr>'
>endscan
>lchtml = lchtml + '</table></body></html>'
>
>STRTOFILE(lchtml,'c:\testhtm.htm')
>
Thanks!

Sandi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform