Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
Loading an Excel File which is already open in Excel throws exception?
posted

You can open a file in Excel and open the same file using ODBC, but if you use the Excel Load function an exception is thrown saying the file is already in use. Is there any way to get the same behavoir that you would get if you used ODBC?

Parents
  • 44743
    posted

    The answer to this question explains how using a FileShare value of ReadWrite might help here. Try to open your file with this solution and then pass the FileStream instance into Workbook.Load.

Reply Children
No Data