Spread for ASP.NET 10 Product Documentation > Developer's Guide > Managing File Operations > Opening Existing Files > Opening a Spread XML File |
Spread can save data or data and formatting to an XML file or a stream, which you can then open back into the FpSpread component. You can open a Spread XML file or stream of an entire component or a specific sheet.
You can also open a file from inside Spread Designer.
Refer to the SheetView class Open method to open a specific sheet. Use the FpSpread Open method to open the entire control.
For instructions for saving Spread XML files, see Saving to a Spread XML File.
Use the FpSpread component’s Open method, specifying the path and file name of the Spread XML file to open or the Stream object to open.
This example code opens an existing Spread-compatible XML file.
C# |
Copy Code
|
---|---|
// Open a Spread-compatible XML file. FpSpread1.Open("c:\spreadfile"); |
VB |
Copy Code
|
---|---|
' Open a Spread-compatible XML file. FpSpread1.Open("c:\spreadfile") |