read excel file using javascript

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Apr 2009
Posts: 13
Reputation: Poojasrivastava is an unknown quantity at this point 
Solved Threads: 0
Poojasrivastava Poojasrivastava is offline Offline
Newbie Poster

read excel file using javascript

 
0
  #1
May 13th, 2009
hi ,
actually i am developing a web application in asp.net using c#.
i have come across a requirement to read a excel file without going to the server . i need to use javascript for the same.

so i need help on javascript function to read from excel file.
i tried a lot many codes available but nothing seems to be working...
so somebody help me...
one of the codes i tried is:
  1. <script language="javascript">
  2. function readFromExcel()
  3.  
  4. {
  5.  
  6. var excel = new ActiveXObject("Excel.Application");
  7.  
  8. var excel_file = excel.Workbooks.Open("C:\\Book2.xls");
  9.  
  10. var excel_sheet = excel_file.Worksheets("Sheet1");
  11.  
  12. return data;
  13.  
  14.  
  15.  
  16. }
  17. <body>
  18. <input type="button" onclick=readFromExcel() value="read"/>
  19. </body>
Last edited by peter_budo; May 15th, 2009 at 8:35 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC