display a table from a excel sheet

mehdi17

New Member
I want to display a table from a excel sheet in my html page. There are so many tables in this excel sheet. I want a specific table to display. Please Help..\[code\] <html> <head> <title> From Excel </title> <script language="javascript" > function GetData(cell,row){ var excel = new ActiveXObject("Excel.Application"); var excel_file = excel.Workbooks.Open("C:\\Gridsim experiment result.xlsx"); var excel_sheet = excel.Worksheets("25 PEs"); var data = http://stackoverflow.com/questions/15542106/excel_sheet.Cells(cell,row).Value; document.getElementById('div1').innerText =data;}</script></head><body><div id="div1" style="background: #DFDFFF; width:'100%';" align="center">Click buttons to fetch data from c:\abc.xlsx</div><input name="Button1" type="button" onClick="GetData(1,1)" value="http://stackoverflow.com/questions/15542106/button1"><input name="Button2" type="button" onClick="GetData(1,2)" value="http://stackoverflow.com/questions/15542106/button2"><input name="Button3" type="button" onClick="GetData(2,1)" value="http://stackoverflow.com/questions/15542106/button3"><input name="Button4" type="button" onClick="GetData(2,2)" value="http://stackoverflow.com/questions/15542106/button4"></body></html>\[/code\]this is my code. But I do not want to fetch cells one by one. I want to retrieve a whole table on a click. Any Suggestions..
 
Back
Top