View Single Post
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

Re: opening Excel 2003 file by c#

 
0
  #7
May 21st, 2009
i did the same thing using javascript..may be that helps you..
here is the javascript code:
  1. <html>
  2.  
  3. <head>
  4.  
  5. <title></title>
  6.  
  7. </head>
  8.  
  9. <body>
  10. <script type="text/javascript">
  11. function read()
  12. {
  13.  
  14. var myApp = new ActiveXObject("Excel.Application");
  15. if (myApp != null)
  16. {
  17. myApp.visible = true;
  18. myApp.workbooks.open("C:\\Book2.xls");
  19. }
  20. }
  21.  
  22. </script>
  23. <button onclick="read();">READ</button>
  24. </body>
  25.  
  26. </html>
Reply With Quote