SSSaveToFile Function
Applies To
fpSpread DLL control
Description
Saves the data only, or the data with formatting, to a binary data file.
Syntax
BOOL SSSaveToFile(HWND hWnd, LPCTSTR lpszFileName, BOOL fDataOnly);
BOOL TSpread::SaveToFile(LPCTSTR lpszFileName, BOOL fDataOnly);
Parameters
The following parameters are available:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
lpFileName | Path and file name of file to which to save sheet or sheets |
fDataOnly | Specifies whether to save only the data |
Remarks
This function is applied to the entire workbook, including all sheets in the control. All the sheets in the control are saved to the binary file.
Binary files are in a proprietary format that only the Spread control or the Spread Designer can read. By default, binary files created using Spread or the Spread Designer have the extension .SS8. However, you can use any extension.
If the fDataOnly parameter is set to TRUE, only the data is saved. This creates a much smaller file; however, formatting information (such as cell types) is not saved. To save the data with formatting, set the fDataOnly parameter to FALSE.
Return Value
TRUE if the function completes successfully; FALSE otherwise.
See Also
SSLoadFromBuffer, SSLoadFromFile, SSLoadTabFile, SSSaveTabFile, SSSaveToBuffer, SSSetSheet functions
ActiveX Correspondence
SaveToFile method