Possible Duplicate:
System.Data.OleDb.OleDbException: Invalid internet address. How do you connect to excel files located on a webserver using OleDb
I have a uploaded an excel file in a server. http :// mysite.com/docs/excelFile.xlsx". I need to read this excel file by establishing oledb connection without having to save the file to disk. Any idea? the below code give "invalid internet address error". How can i create the connection string for the file located in a server?
String connectionString = String.Empty;
connectionString = String.Format(@"Provider=Microsoft.ACE.OLEDB.12.0;
Data Source={0};Extended Properties=""Excel 8.0;HDR=YES;IMEX=1;""",
"http://mysite.com/docs/excelFile.xlsx");