Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting to open Excel document
Message
De
18/12/2006 12:40:04
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Connecting to open Excel document
Versions des environnements
Environment:
ASP.NET
Divers
Thread ID:
01178614
Message ID:
01178614
Vues:
83
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/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform