Calling the SaveAs method
As an alternative to creating HTML pages dynamically, you can call
the SaveAs method with the HTMLTable! Enumeration:
|
1 2 |
ds_1.SaveAs & ("C:TEMPHTMLTemp.htm", HTMLTable!, TRUE) |
This creates an HTML file with the proper elements, including the
style sheet:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<STYLE TYPE="text/css"> <!-- .2 {COLOR:#000000;BACKGROUND:#ffffff;FONT-STYLE:normal;FONT-WEIGHT:normal;FONT:9pt "Arial", sans-serif;TEXT-DECORATION:none} .3{COLOR:#000000;BACKGROUND:#ffffff;FONT-STYLE:normal;FONT-WEIGHT:normal;FONT:8pt "MS Sans Serif", sans-serif;TEXT-DECORATION:none} .3{COLOR:#000000;BACKGROUND:#ffffff;FONT-STYLE:normal;FONT-WEIGHT:normal;FONT:8pt "MS Sans Serif", sans-serif;TEXT-DECORATION:none} --> </STYLE> <TABLE nowrap cellspacing=2 cellpadding=2 border=5 width=5> <tr> <td CLASS=2 ALIGN=right>Employee ID: <td CLASS=3 ALIGN=right>501 <tr> <td CLASS=2 ALIGN=right>Last Name: <td CLASS=3>Scott <tr> <td CLASS=2 ALIGN=right>First Name: <td CLASS=3>David <tr> <td CLASS=2 ALIGN=right>Status: <td CLASS=3>Active </TABLE> |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest