Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Html report template
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Html report template
Miscellaneous
Thread ID:
01233285
Message ID:
01233285
Views:
45
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?
Reply
Map
View

Click here to load this message in the networking platform