Spread can open data or data and formatting from a Spread-compatible XML file or a stream into the Spread component.
For more details on opening a Spread XML file, refer to the Open methods of the FpSpread class or the Open methods of the SheetView class.
For instructions for saving Spread XML files, see Saving to a Spread XML File.
Use the FpSpread class 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 in the component.
C# |
Copy Code
|
---|---|
// Open a Spread-compatible XML file. fpSpread1.Open("C:\\spreadfile.xml"); |
VB |
Copy Code
|
---|---|
' Open a Spread-compatible XML file. fpSpread1.Open("C:\spreadfile.xml") |
The Open dialog appears.
If the file is opened successfully, a message appears stating the file has been opened.