Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
| Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 11th, 2004, 03:07 AM
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>


 
Old January 11th, 2004, 10:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: High Wycombe, UK, United Kingdom.
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

take a look at http://www.greggriffiths.org/webdev/both/excel/ which covers something similar.
 
Old January 17th, 2004, 05:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: abu dbabi, , United Arab Emirates.
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save user input in Excel from web page onlyshails Javascript 6 March 25th, 2015 11:02 AM
How to fit all column in 1 page in excel format? awiezzz Classic ASP Components 2 February 23rd, 2011 01:42 PM
Save a file in CSV format thru Excel VBA macro roli2712 Excel VBA 1 July 11th, 2007 03:05 AM
How do you save an html page on your local hd? rsalah Javascript How-To 16 January 27th, 2005 01:48 AM
how to save text with format?? 6cet6 ASP.NET 1.0 and 1.1 Basics 4 November 20th, 2003 06:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.