Search code examples
c#exceloledb

C# read open Excel file through OleDb


I need to connect to an open Excel 2003 file using .NET 3.5

It seems the OleDb connection which I am trying to use wants the file exclusively. But I need to have this file open in Excel in the same time.

Is non-locking reading possible?

EDIT: I resolved this by copying file before opening it.


Solution

  • the question seems have no answer. and I cant delete it....

    my solution was - run macro on timer to save the excel file in question and C# app was copying the file to another one and reading it using OleDb.