Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import an Xl file
Message
From
11/12/2006 09:02:17
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01176443
Message ID:
01176514
Views:
6
>Hi.
>Would anybody suggest the Dot Net alternative to the following:
>_____________________________________
>Sele 0
>Use MyTable
>Appe from MyExcelFile.xls type XLS
>_____________________________________
>
>Regards,
>Gerard

Gerard,

The steps are a little more involved in .NET, but the idea is to create an OleDbConnection using the Microsoft Jet provider to the XLS file. Once you have the connection, you can query it the same way as any other data source.

If found this connection string at http://www.simongibson.com/intranet/adooledb/
strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath(".\excel\myExcelFile.xls") & ";" & _
"Extended Properties=""Excel 8.0;HDR=Yes;"";"
Previous
Reply
Map
View

Click here to load this message in the networking platform