Spread 8.0 Documentation
IsExcel2007File Method
Support Options
ActiveX Reference > ActiveX Methods > IsExcel2007File Method

Glossary Item Box

IsExcel2007File Method


See Also    DLL

Applies To

fpSpread control

Description

Returns whether the specified file is an Excel-formatted file in xlsx format.

Syntax

C++

short CSpreadSheet::IsExcel2007File(LPCTSTR FileName);

Visual Basic

fpSpread.IsExcel2007File(ByVal FileName As String) As IsExcel2007FileConstants

Parameters

The following parameter is available:

Parameter Description
FileName Path and file name of the file for which you want to return the information

Remarks

Call this method to determine whether the file you want to import into Spread is an Excel-formatted, xlsx file. See the readme for special redistribution requirements for this method.

For instructions and more information about importing Excel-formatted files, see Loading an Excel-Formatted File and Excel-Formatted File Import/Export (online PDF manual). Excel-Formatted File Import/Export includes a list and description of the log message numbers.

Return Type

Value indicating file type as follows:

Value File Information
0 - No The file is not an Excel file in xlsx format or Spread cannot open the file.
1 - Yes The file is an Excel file in xlsx format.
2 - Encrypted The file is encrypted.

See Also

Loading an Excel-Formatted File
Excel-Formatted File Import/Export (online PDF manual)

ExportToExcel, GetExcelSheetList, ImportExcelSheet methods

DLL Correspondence

SSIsExcel2007File function

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.