View Single Post
Join Date: Oct 2008
Posts: 2,721
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 500
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: opening Excel 2003 file by c#

 
0
  #8
May 21st, 2009
Originally Posted by Poojasrivastava View Post
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>

Nice code. You should post this one on Web forum.
Reply With Quote