Is there any way to read xlsx when i open a excel to edit it at the same time in c#?

When I use c# to read a excel which I use excel to open it, there is a error The process cannot access the file 'xxxx' because it is being used by another process.

@lyj0309,

Reading an Excel file (even if it is being used in some process or is opened in MS Excel) via Aspose.Cells APIs is not a problem, you can do that. But when you re-save an Excel file with the same name (while you have already opened it in MS Excel or you are using the file in some other process), it is not allowed.

You cannot overwrite/re-save an Excel file with the same name using Aspose.Cells APIs if you have already opened the Excel file into MS Excel manually. You either need to close the file in MS Excel or save it as with some other name by Aspose.Cells APIs (you cannot use the same name if the file is already in some process or opened into MS Excel).