Calling the SaveAs method

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