Spread 8.0 Documentation
SSIsExcelFile Function
Support Options
DLL Reference > DLL Functions > SSIsExcelFile Function

Glossary Item Box

SSIsExcelFile Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

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

Syntax

C

int SSIsExcelFile(LPCTSTR lpszFileName);

C++

int TSpread::IsExcelFile(LPCTSTR lpszFileName);

Parameters

The following parameter is available:

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

Remarks

Spread can import Excel-formatted files if they are in BIFF8 format. BIFF8 format is the format used for files saved from Excel 97, Excel 2000, and Excel 2002. Call this function to determine whether the file you want to import into Spread is an Excel-formatted, BIFF8 file.

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 Value

Value indicating file type as follows:

Value File Information
0 The file is not an Excel file in BIFF8 format, and Spread cannot open the file.
1 The file is an Excel file in BIFF8 format.
2 The file is locked or the type cannot be determined, and Spread cannot open the file.
Examples of when this value might be returned are when the file is open in Excel or if the file is in use by another application.

See Also

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

SSExportToExcel, SSGetExcelSheetList, SSImportExcelSheet functions

ActiveX Correspondence

IsExcelFile method

Copyright © GrapeCity, inc. All rights reserved.