Exclusive lock on excel file
Posted: Wed Jul 24, 2019 10:17 am
Hi!
Is there a way (option or property or s.th.) to exclusively lock an excel file when beginning to read the file via TXLSReadWriteII5.Read until it is written again?
I currently run into a problem where two program instances try to write into the same excel file. First both instances have read the file (into memory) and did some modifications
but then override each other when writing into the same file. Is there a way to lock the excel file before the first instance starts reading until it has written its modifications into the file?
best regards
Is there a way (option or property or s.th.) to exclusively lock an excel file when beginning to read the file via TXLSReadWriteII5.Read until it is written again?
I currently run into a problem where two program instances try to write into the same excel file. First both instances have read the file (into memory) and did some modifications
but then override each other when writing into the same file. Is there a way to lock the excel file before the first instance starts reading until it has written its modifications into the file?
best regards