Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Closed Unassigned: Lock Excel document for writing [9358]

$
0
0
Hi All,

is it possible to lock an excel document via the ClosedXML library ?

I need to open the document and check it's content while modifying it via the ClosedXML functions cause this scenario throw an exception when trying to modify an opened document.

I need it urgently, so please give me a quick response.

Thanks
Comments: ClosedXML only locks the file while it reads or writes the file. If another app has a lock on the file then ClosedXML cannot read or write the file. If open a file then it will be locked only for the read moment, after that the file is fair game for other processes. If you save the file then it will be overwritten.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>