Opens the specified file and determines whether it meets the minimal requirements to be considered a structured storage file containing an Excel workbook.
Syntax
'Declaration
Public Overloads Function IsExcelFile( _
ByVal As String, _
ByRef As ExcelWorkbookType, _
ByRef As Boolean _
) As Boolean
'Usage
Dim instance As FpSpread
Dim fileName As String
Dim workbookType As ExcelWorkbookType
Dim isEncrypt As Boolean
Dim value As Boolean
value = instance.IsExcelFile(fileName, workbookType, isEncrypt)
public bool IsExcelFile(
string ,
ref ExcelWorkbookType ,
out bool
)
Parameters
- fileName
- Path and name of file
- workbookType
- Returns the type of Excel workbook
- isEncrypt
- Returns true if the file is encrypted; false otherwise
Exceptions
See Also