View Single Post
  #1 (permalink)  
Old January 11th, 2004, 03:07 AM
mateenmohd mateenmohd is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: abu dbabi, , United Arab Emirates.
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default html page save to excel format

How can save the html page to Excel format ?
so the html page can be open in Excel and can implement
function etc..

Excel data file can import into sql server,
I prepare report in html, data in sql server.
I could not export html file data to Excel file

How can save / export html page data into Excel by
the java script ?

just like following code, but this code save the file in html
I want to save the file in Excel
By the java script this is possible ?

Please help.

Regards.


<BODY>
<P>web data page
<script>

function doSaveAs(){
    if (document.execCommand){
        document.execCommand("SaveAs")
    }
    else {
        alert("Save-feature available only in Internet Exlorer 5.x.")
    }
}
</script>
</P>
<form>
<input type="button" value="save" onClick="doSaveAs()"
 form <></form>


</BODY>


Reply With Quote