GrapeCity.Excel Namespace > ExcelOperator Class > Open Method : Open(String,Int32,String) Method |
Exception | Description |
---|---|
System.ArgumentException | file contains only white space, or contains one or more invalid characters as defined by Path.GetInvalidPathChars(). |
System.IO.PathTooLongException | The file 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 file is invalid, (for example, it is on an unmapped drive). |
System.IO.IOException | An I/O error occurred while opening the file. |
System.UnauthorizedAccessException | file specified a file that is read-only and access is not Read. file specified a directory. The caller does not have the required permission. |
System.IO.FileNotFoundException | The file specified in path was not found. |
System.NotSupportedException | file is in an invalid format. |
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)