Process - Can not access the File + C# and Write to Csv from Excel -


is there equivalent of fileshare = readwrite while writing microsoft excel using vba code.

i have file watcher implemented in c# application, start reading csv file it's created (i've tried time delay of 1.5 seconds). sometimes, due network latency, or volume of data - excel still writing file, while application starts reading it.

i open csv using following code - still acces violation error " “in use process” exception" error

using (var csv = new filestream(csvfile, filemode.open, fileaccess.read, fileshare.readwrite)) 

thanks


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -