Skip to content

Xlsx file has error that file in use by another user

Sunita Salunkhe

Asked Jan 26, 2015, 8:41 PM EST1 answer
Share
LinkedInX
Hi ,
I am getting an error while browsing a xlsx file through my code in c#. 
I got the error , file in process , used by another user.
I'm  using gembox code not ms excel interop.
following is  my code lines where i get error:
ExcelFile ef =  new ExcelFile(); 
SpreadsheetInfo.SetLicense("XXXX-XXXX-XXXX-XXXX");
ef = ExcelFile.Load(this.m_filePath); 
Thank you..

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    hi sunita, I have also deal with same problem. That file might be open in background try to close it through task manager and add code to close the file before that programme ends up
    0