GrapeCity.Excel Namespace > ExcelOperator Class > Save Method : Save(String,ExcelFileType,String) Method |
'Declaration Public Overloads Sub Save( _ ByVal fileName As System.String, _ Optional ByVal workbookType As ExcelFileType, _ Optional ByVal password As System.String _ )
'Usage Dim instance As ExcelOperator Dim fileName As System.String Dim workbookType As ExcelFileType Dim password As System.String instance.Save(fileName, workbookType, password)
public void Save( System.string fileName, ExcelFileType workbookType, System.string password )
Exception | Description |
---|---|
System.ArgumentException | fileName contains only white space, or contains one or more invalid characters as defined by Path.GetInvalidPathChars(). |
System.IO.PathTooLongException | The fileName exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters. |
System.IO.DirectoryNotFoundException | The specified fileName is invalid, (for example, it is on an unmapped drive). |
System.IO.IOException | An I/O error occurred while opening the fileName. |
System.UnauthorizedAccessException | fileName specified a file that is read-only and access is not Read. fileName specified a directory. The caller does not have the required permission. |
System.IO.FileNotFoundException | The fileName specified in path was not found. |
System.NotSupportedException | fileName is in an invalid format. |
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6