Calling the SaveAs method

NoteAvailability 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:

ds_1.SaveAs  &
		("C:\TEMP\HTMLTemp.htm", HTMLTable!, TRUE)

This creates an HTML file with the proper elements, including the style sheet:

<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>