| | |
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
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox click commonfunctions control css dataaccesslayer database datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash form formatdecimal formview gridview gudi iframe iis javascript listbox login microsoft mono mouse mssql multistepregistration news novell numerical opera panelmasterpagebuttoncontrols parent radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers





