Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Description

Saves a specified Workbook as a  OOXML format (Excel 2007 or later) .xlsx or  BIFF8 format (Excel 97 or later) .xls file.

C#
vb.net

Parameters

workbook
A Workbook object representing the workbook to save.
fileName
Specifies a complete path and file name for the Workbook. ExcelWriter will save the file to this location. If a file with the same name exists, it will be overwritten by the new Excel file.

Exceptions

System.Exception
If there is a problem creating, opening, or writing to the file specified, or reading from the workbook object.
System.ArgumentException
If the extension of the filename given is invalid for the given workbook. For example, a file created with Excel 2007, that has macros must be saved with the .xlsm extension

Examples

C#
vb.net
  • No labels