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
Post a Comment