Spread Windows Forms 12.0 Product Documentation
SaveExcel Method


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : SaveExcel Method
Saves the content of the Spread component to the specified stream.
Saves the contents of the Spread component to Excel format (BIFF8).
Overload List
OverloadDescription
Saves the content of the Spread component to the specified stream.  
Saves the content of the Spread component to the specified stream.  
Saves the content of the Spread component to the specified stream with a list of warnings.  
Saves the content of the Spread component to the specified stream with the headers exported as data.  
Saves the content of the Spread component to the specified stream with the headers exported as data.  
Saves the content of the Spread component to the specified stream with headers and a list of warnings.  
Saves the content of the Spread component to the specified stream with headers and a list of warnings.  
Saves the content of the Spread component to the specified Excel-compatible file with the headers exported as data.  
Saves the content of the Spread component to the specified Excel-compatible file with the headers exported as data.  
Saves the content of the Spread component to the specified Excel-compatible file with headers and a list of warnings.  
Saves the content of the Spread component to the specified Excel-compatible file with headers and a list of warnings.  
Saves the content of the Spread component to the specified Excel-compatible file.  
Saves the content of the Spread component to the specified Excel-compatible file.  
Saves the content of the Spread component to the specified Excel-compatible file with a list of warnings.  
Saves the content of the Spread component to the specified Excel-compatible file with the headers exported as data.  
Saves the content of the Spread component to the specified Excel-compatible file with headers and a list of warnings.  
Remarks

These methods provide various ways to save data to an Excel file. You can specify the path and file name, whether to include the headers, and a list of the warnings.

These methods save the contents of the sheets of the Spread component to an Excel-compatible BIFF8 (Binary Interchange File Format, version 8 from Microsoft) file. This is the file format for several versions of Microsoft Excel (Excel 97, Excel 2000, and Excel XP).

Document caching (ExcelSaveFlags) allows users to open, edit, and save without the loss of advanced document content and formatting. The content can be lossless only if the opening file format is similar to the saving file format. If the advanced document content uses files besides the xls(x) file, then the additional files need to be in the same folder with the xls(x) file. Advanced content could be macros, ActiveX controls, data connections, etc...

Make sure that none of the sheet names (SheetName property) have characters that are considered invalid sheet names in Excel. The following characters are invalid for Excel sheet names:

?     (question mark)

/     (forward slash)

\     (backward slash)

*     (asterisk)

[     (left bracket)

]     (right bracket)

See Also

Reference

FpSpread Class
FpSpread Members
OpenExcel Method

User-Task Documentation

Saving Files