943,597 Members | Top Members by Rank

Ad:
May 13th, 2009
0

read excel file using javascript

Expand Post »
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:
html Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 11
Solved Threads: 0
Newbie Poster
Poojasrivastava is offline Offline
13 posts
since Apr 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: help needed, mousemove related and more.
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: storing a value from a slider as a variable for calculation later





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC