public void CloseRead() { if (m_objSpreadsheetDocument != null) { m_objSpreadsheetDocument.Dispose(); } }
public void Dispose() { if (doc != null) { doc.Dispose(); } doc = null; // dispose }
public void Save() { if (wbPart != null) { wbPart.Workbook.Save(); } if (xlDoc != null) { xlDoc.Close(); xlDoc.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (disposing) { if (_excel_file != null) { _excel_file.Close(); _excel_file.Dispose(); _excel_file = null; } _stream?.Dispose(); } }