Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Html report template
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Html report template
Divers
Thread ID:
01233285
Message ID:
01233285
Vues:
44
I have a prog that creates an html report and sends it over email. The html is from a template that I create. A simplified example of the template would be something like this...
<html><body>
<<MYVAR>>
</body>
</html>
I read in the template and do a textmerge so that the end result is...
<html><body>
Hello World
</body>
</html>
This works great till I need a table with a variable number of rows. I've considered keeping three templates...
1. The top part
<html><body>
<table>
<tr><td>Col1</td><td>Col2</td></tr>
2. The middle table rows
<tr><td><<COL1DATA>></td><td><<COL2DATA>></td></tr>
3. The bottom part
</table>
</body>
</html>
That way my prog can repeat the middle part as needed for as many rows as I want then append the bottom part.

Although this would work it seems there should be a better way. Any ideas?
Répondre
Fil
Voir

Click here to load this message in the networking platform