Im trying to pass 8 string values in to a row in an already existing excel spreadsheet and then be able to select that row programmatically using C#. I am using a Windows Service with a file system watcher that is constantly monitoring a directory for a file to be added once the file is added it needs to extract the file contents in to object properties and then write them to an excel sheet. Would anyone have any idea how to do this without having to pay for any additional excel extensions? I am using excel 2007 and Visual Studio 2012. Any help would be much appreciated.
Thanks
Bernard
Hi I actually got it working there. I used the following code to write to a specific cell in an already existing excel sheet:
This code was taken from this article which also goes on to save the excel sheet:
http://rmanimaran.wordpress.com/2011/02/15/programmatically-insert-to-existing-excel-file-using-c/
I hope this helps somebody else.
Thanks
Bernard