Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FpSpread Class / OpenExcel Method


In This Topic
    OpenExcel Method (FpSpread)
    In This Topic
    Opens an Excel file and loads it into the Spread component.
    Opens an Excel-formatted (BIFF8) file.
    Overload List
    OverloadDescription
    Opens an Excel file and loads it into the Spread component.  
    Opens an Excel file and loads it into the Spread component.  
    Opens an Excel file into the Spread component keeping track of warnings.  
    Opens an Excel file and loads the specified Excel sheet (by name) into the specified sheet of the Spread component (by index).  
    Opens an Excel file and loads the specified Excel sheet (by name) into the specified sheet of the Spread component (by name).  
    Opens an Excel file and loads the specified Excel sheet (by index) into the specified sheet of the Spread component (by index).  
    Opens an Excel file and loads the specified Excel sheet into the specified sheet of the Spread component keeping track of warnings.  
    Opens an Excel file into the Spread component including the specified parts of the spreadsheet.  
    Opens an Excel file into the Spread component including the specified parts and keeps track of warnings.  
    Opens an Excel file into the Spread component including the specified parts and keeps track of warnings.  
    Opens an Excel file and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts.  
    Opens an Excel file and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts.  
    Opens an Excel file and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts.  
    Opens an Excel file and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts.  
    Opens an Excel file and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts.  
    Opens an Excel file and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts and keeps track of warnings.  
    Opens an Excel file and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts and keeps track of warnings.  
    Opens an Excel stream and loads it into the Spread component.  
    Opens an Excel stream and loads it into the Spread component.  
    Opens an Excel stream into the Spread component keeping track of warnings.  
    Opens an Excel stream and loads the specified Excel sheet (by name) into this sheet of the Spread component (by index).  
    Opens an Excel stream and loads the specified Excel sheet (by name) into this sheet of the Spread component (by name).  
    Opens an Excel stream and loads the specified Excel sheet (by index) into this sheet of the Spread component (by index).  
    Opens an Excel stream and loads the specified Excel sheet (by index) into this sheet of the Spread component (by index) keeping track of warnings.  
    Opens an Excel stream into the Spread component including the specified parts of the spreadsheet.  
    Opens an Excel stream into the Spread component including the specified parts keeping track of warnings.  
    Opens an Excel stream into the Spread component including the specified parts keeping track of warnings.  
    Opens an Excel stream and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts.  
    Opens an Excel stream and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts.  
    Opens an Excel stream and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts.  
    Opens an Excel stream and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts.  
    Opens an Excel file from a stream and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts.  
    Opens an Excel file from a stream and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts and keeps track of warnings.  
    Opens an Excel file from a stream and loads the specified Excel sheet into the specified sheet of the Spread component including the specified parts and keeps track of warnings.  
    Remarks

    These methods open a Microsoft Excel-compatible BIFF (Binary Interchange File Format) file. BIFF8 (Binary Interchange File Format, version 8 from Microsoft) is the file format for several versions of Microsoft Excel (Excel 97, Excel 2000, and Excel XP).

    For opening a Spread XML file, refer to the Open method. For opening a text file, refer to the SheetView LoadTextFile method.

    Document caching (ExcelOpenFlags) 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.

    In order to keep any document caching settings (changes would be lost during a postback), open the original file with the document caching only setting and then save the file using the document caching setting.

    See Also