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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -