title: C#: How can I open and close an Excel workbook?
body: <p><strong>Does anyone know how to simply open and close an Excel workbook?</strong></p>
  
  <p>I don't need to read any data from the file, I just need to open and close it. (*)</p>
  
  <p>I'm guessing that I'll need to reference the Microsoft.Office.Interop.Excel assembly.</p>
  
  <hr>
  
  <p>*Reason: I've already configured pivot table information with a 3rd party library (Aspose). Now I need to read the generated pivot table.</p>
  
  <p>Unfortunately, the Aspose library can't generate the pivot table at runtime. It needs someone to <a href="http://www.aspose.com/community/forums/permalink/80143/80041/showthread.aspx#80041" rel="noreferrer">open the file with Excel</a> so that Excel can generate the pivot table values.</p>