Saves the worksheet to a file.

Namespace:  C1.Silverlight.Excel
Assembly:  C1.Silverlight.Excel.5 (in C1.Silverlight.Excel.5.dll)

Syntax

C#
public void Save(
	string fileName
)
Visual Basic
Public Sub Save ( _
	fileName As String _
)

Parameters

fileName
Type: System..::..String
Name of the file to save.

Remarks

The format used to save the file is automatically determined by the file name extension. "Xlsx" and "zip" files are saved as OpenXml; all others are saved as Biff8 files ("xls").

If the file can't be created, an exception is thrown. This typically indicates that the file is currently open by another application (such as Microsoft Excel).

See Also