title: Updating an excel document programmatically
body: <p>First for context, I am a placement student on the automation team of a software development company, so I help develop the automated test programs on our daily builds. </p>
  
  <p>My line manager has produced an excel document which will be used to present the results from our test environments. Our tests run on virtual PC's on a hyper-V server. </p>
  
  <p>I want to be able to update this excel document with the results of tests from each of the test environments, but I'm not sure how I should go about doing this. </p>
  
  <p>Each of the virtual PC's runs an automation program (C# .NET 4.0), and currently copies the test logs and result files to a shared folder on our build machine, which is accessible by everyone. </p>
  
  <p>So I want the automation program to run its tests, then when it has finished, I want it to write to the table in the excel document with the test results. Has anyone any experience with modifying excel documents programmatically? I should also note that the excel document will be stored in a shared folder on a remote virtual PC (accessible from the test environment) </p>
  
  <p>The table will contain the build name/date, environment details, type of test and the test result etc. </p>
  
  <p>I already collect this information and present it in HTML files - but there is a separate HTML file for each test environment. The goal of this is so that the results will all be in one place (The excel document will take care of presenting the data in the tables in the form of graphs and charts). </p>
  
  <p>So really, all I need to know is how to write to a table in an excel document from a .NET program. There seems to be different ways of doing this (as I found when I researched it online), so I want to ask stackoverflow to see who knows the best way to do this).</p>