FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > FpSpread クラス > IsExcelFile メソッド : IsExcelFile(String) メソッド |
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