| | |
Read excel file in asp.net
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2009
Posts: 13
Reputation:
Solved Threads: 0
<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>•
•
Join Date: May 2009
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
<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
![]() |
Similar Threads
- read excel file using javascript (JavaScript / DHTML / AJAX)
- How to call excel sheet in asp.net (ASP.NET)
- Run Dos Batch file from ASP.Net (ASP.NET)
- Help to read the excel file. (ASP.NET)
- Reading content of an xml file to asp.net (VB.NET)
- how Timer works in global.asax file of asp.net using c#.net (C#)
- Read MS-Excel file through EVC++ 4.0 (C++)
- read excel records in asp not refreshing (is the excel file cached) (ASP)
- Batch file in ASP.Net to convert Excel files into higher version (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Using Two Recordset and Queries in ASP - please help
- Next Thread: AutoPostback for the Textbox in the userControl
Views: 1435 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol advice ajax alltypeofvideos anathor application asp asp.net bc30451 bottomasp.net box browser button c# checkbox click commonfunctions complex connection dataaccesslayer database datagridview datagridviewcheckbox datalist development dgv dropdownlist dynamically edit editing expose feedback fileuploader fill flash form formatdecimal formview google gridview gudi iframe iis javascript list listbox login microsoft migration mono mouse mssql news numerical opera panelmasterpagebuttoncontrols parent problem project radio redirect registration relationaldatabases reportemail richtextbox rows save schoolproject search security select session silverlight smartcard smoobjects software sql sql-server sqlserver2005 suse textbox theft tracking unauthorized validation vb.net video videos view vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers





