Spread ASP.NET 6.0 Product Documentation
Open(Stream) Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class > Open Method : Open(Stream) Method


stream
Stream from which to load

Glossary Item Box

Opens a saved Spread XML file and loads it into the Spread component from a stream.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Open( _
   ByVal stream As Stream _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim stream As Stream
Dim value As Boolean
 
value = instance.Open(stream)
C# 
public bool Open( 
   Stream stream
)

Parameters

stream
Stream from which to load

Return Value

true if successful; false otherwise

Remarks

This method opens a source of Spread-compatible XML (Extensible Markup Language) from a stream.

Example

C#Copy Code
string fileName;
fileName = "D:\\mine.xml";
System.IO.Stream stream;
stream = System.IO.File.Open(fileName, System.IO.FileMode.Open);
FpSpread1.Open(stream);
Visual BasicCopy Code
Dim fileName As String
fileName = "D:\mine.xml"
Dim stream As System.IO.Stream
stream = System.IO.File.Open(fileName, System.IO.FileMode.Open)
FpSpread1.Open(stream)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.