C#: How can I open and close an Excel workbook?
问题 Does anyone know how to simply open and close an Excel workbook? I don't need to read any data from the file, I just need to open and close it. (*) I'm guessing that I'll need to reference the Microsoft.Office.Interop.Excel assembly. *Reason: I've already configured pivot table information with a 3rd party library (Aspose). Now I need to read the generated pivot table. Unfortunately, the Aspose library can't generate the pivot table at runtime. It needs someone to open the file with Excel so