Spread Windows Forms 11.0 Product Documentation
Open(String) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > Open Method : Open(String) Method
Path and name of file from which to load the data
Opens a saved XML file into a sheet view.
Syntax
'Declaration
 
Public Overloads Function Open( _
   ByVal fileName As String _
) As Boolean
'Usage
 
Dim instance As SheetView
Dim fileName As String
Dim value As Boolean
 
value = instance.Open(fileName)
public bool Open( 
   string fileName
)

Parameters

fileName
Path and name of file from which to load the data
Remarks

This method only loads a file created with the SheetView Save method.

Refer to Parsing Formulas in Custom XML Deserialization for information about cross-sheet references and the Open method.
Example
This example uses the Open method.
FpSpread1.Sheets[0].Open("c:\\spreadwin.xml");
s.Open("c:\\spreadwin.xml");
FpSpread1.Sheets.Add(s);
Dim s As New FarPoint.Win.Spread.SheetView
s.Open("c:\spreadwin.xml")
FpSpread1.Sheets.Add(s)
See Also

Reference

SheetView Class
SheetView Members
Overload List