write to text file the table displayed on screen
Hi all...
the text file gets created that works but its blank...
the loop doesn"t work.. an i doing something wrong... or may be we can"t do this???
thanking you inadvance
Rino
<script language=javascript>
function SaveToText()
{
var object = new ActiveXObject("Scripting.FileSystemObject");
var file = object.CreateTextFile("C:\PO.csv", true);
for (var x=0;x<detailsTable;x++)
{
file.WriteLine(detailsTable);
}
file.Close();
}
</script>
....
Response.Write "<br><table id=" & Chr(34) & "detailsTable" & Chr(34) & " border=1 align=" & Chr(34) & "center" & Chr(34) & ">" & Chr(13)
Response.Write "<TR>" & Chr(13)
Response.Write "<TD BGCOLOR=" & Chr(34) & "#CFCFCF" & Chr(34) & "ALIGN=" & Chr(34) & "center" & Chr(34) & "><B>" & "Store" & " </TD>" & Chr(13)
...
If not rs.eof Then
Do until rs.eof
Response.Write "<tr>" & Chr(13)
Response.Write "<TD VALIGN=" & Chr(34) & "TOP" & Chr(34) & "ALIGN=" & Chr(34) & "left" & Chr(34) & ">"& rs("ISTORE")&"</TD>" & Chr(13)
...
...
|