Parameters
- fileName
- String that contains the path and file name
Return Value
Boolean: true if it is an Excel file; false otherwise
string s = "c:\\test.xls"; bool b = fpSpread1.IsExcelFile(s); if (b) { fpSpread1.OpenExcel(s); }
Dim s As String = "c:\test.xls" Dim b As Boolean = FpSpread1.IsExcelFile(s) If b Then FpSpread1.OpenExcel(s) End If