Spread Windows Forms 6.0 Product Documentation
Open(String) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > Open Method : Open(String) Method


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

Glossary Item Box

Opens a saved XML file into a sheet view.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Open( _
   ByVal fileName As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim fileName As String
Dim value As Boolean
 
value = instance.Open(fileName)
C# 
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.

Example

This example uses the Open method.
C#Copy Code
FpSpread1.Sheets[0].Open("c:\\spreadwin.xml");
s.Open("c:\\spreadwin.xml");
FpSpread1.Sheets.Add(s);
Visual BasicCopy Code
Dim s As New FarPoint.Win.Spread.SheetView
s.Open("c:\spreadwin.xml")
FpSpread1.Sheets.Add(s)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.