C# Excel 2007-2025 Open XML (*.xlsx) SpreadsheetGear API Sample
Excel-Compatible Samples for .NET
Description
SpreadsheetGear supports saving Excel-compatible workbook files to disk by using the
SpreadsheetGear.IWorkbook.SaveAs(string pathToWorkbook, FileFormat fileFormat) method. To save an Excel 2007-2025 Open XML (*.xlsx) file, use the SpreadsheetGear.FileFormat.OpenXMLWorkbook enumeration option, as shown below: