function exportToExcel() { // debugger; // // // //copy innerHTML of YourTable to strCopy Variable. // // // var strCopy = document.getElementById("Htm1").outerHTML; // var strCopy = document.getElementById("Htm1").innerHTML; // // clickExcel // //getElementById("Bdy1").innerHTML; // //copy strCopy to clipboardData, this // window.clipboardData.setData("Text", strCopy); // var objExcel = new ActiveXObject("Excel.Application"); // objExcel.visible = false; // var objWorkbook = objExcel.Workbooks.Add; // var objWorksheet = objWorkbook.Worksheets(1); // objWorksheet.Paste; // // // document.execCommand("saveas"); // // objWorksheet.SaveAs("C:\\anil.XLS"); // alert("file is saved on c:"); // // objWorksheet.close(); // // }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)