OpenXML SpreadsheetDocument SaveAs() giving file-in-use error
问题 I'm trying to generate an Excel spreadsheet dynamically, using OpenXMLPowerTools v4.5.3.2, DocumentFormat.OpenXML v2.9.1, called from a ASP.Net Core web app. I've verified that able to generate the spreadsheet OK. The problem is that I need to generate the spreadsheet ... and return it as a MEMORY STREAM (so the ASP.Net Core web controller HCExcelReport.cs: class HCExcelReport { protected SpreadsheetDocument doc; protected MemorySpreadsheet ms; protected string tmpFile = System.IO.Path