Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to open Excel document
Message
From
18/12/2006 12:40:04
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Connecting to open Excel document
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01178614
Message ID:
01178614
Views:
82
I am trying to connect to an Excel document in my ASP.NET 1.1 app. I am using the following connection string:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyExcel.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";
When I attempt to fill my dataset, it throws an error when the file is open. Is there a way to perform a read only connection where it doesn't matter if the file is open?

Thanks,
Mike
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform