Read excel file in asp.net

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

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 in asp.net

 
0
  #1
May 21st, 2009
<html>

<head>

<title></title>

</head>

<body>
<script type="text/javascript">
function read()
{

var myApp = new ActiveXObject("Excel.Application");
if (myApp != null)
{
myApp.visible = true;
myApp.workbooks.open("C:\\Book2.xls");
}
}

</script>
<button onclick="read();">READ</button>
</body>

</html>
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 2
Reputation: prasanna201 is an unknown quantity at this point 
Solved Threads: 0
prasanna201 prasanna201 is offline Offline
Newbie Poster

Re: Read excel file in asp.net

 
0
  #2
May 21st, 2009
Originally Posted by Poojasrivastava View Post
<html>

<head>

<title></title>

</head>

<body>
<script type="text/javascript">
function read()
{

var myApp = new ActiveXObject("Excel.Application");
if (myApp != null)
{
myApp.visible = true;
myApp.workbooks.open("C:\\Book2.xls");
}
}

</script>
<button onclick="read();">READ</button>
</body>

</html>

In the internet explorer choose Tools tab and click internet options.
In the internet options, click security tab and choose custom level.
In the custom level, choose enable radio button of Initilize and script ActiveX controls not marked as safe under ActiveX controls and plug-ins this heading.

Thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC