MIME header has been included is ther anything to be included in the script
To be able to do this at all you would need to use a server side language that understands what Excel is.
doesnt this work??It does ,anyways thank you
var xls = new ActiveXObject("Excel.Application")
xls.visible = true
for (i = 0; i < x.length; i++)
var y = x[i].cells
for (j = 0; j < y.length; j++)
xls.Cells( i+1, j+1).Value = y[j].innerText
<body marginheight="0" marginwidth="0">
<input type="button" onclick="CreateExcelSheet()" value="Create Excel Sheet">
<table id="myTable" border="1">
<tr> <b><td>Name </td> <td>Age</td></b></tr>
<tr> <td>Shivani </td> <td>25</td> </tr>
<tr> <td>Naren </td> <td>28</td> </tr>
<tr> <td>Logs</td> <td>57</td> </tr>
<tr> <td>Kas</td> <td>54</td> </tr>
<tr> <td>Sent </td> <td>26</td> </tr>
<tr> <td>Bruce </td> <td>7</td> </tr>
Thanks for your info shivani.
Thanks in advance!
There may be an assumption that Excel is installed, too.
Thnak you all
Originally Posted by klshivani
I am verry much thank full to all, this code has reduced my work a lot, thanks again.
First of all this script is really amazing. I like it. However I tried to use your script but it only allow to saved if you enable the "Internet Options-Security Level-Custom Level-"Initialize and script ActiveX controls not marked as safe" first. Is theres any way of doing this script avoiding these setup because most people will not enable this feature in internet explorer for secuirty purpose.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)