See Also

IWorkbooks Interface  | IWorkbooks Members

Requirements

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

Language

Visual Basic

C#

C++

C++/CLI

Show All

stream
The stream containing the workbook to open.
See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

OpenFromStream Method

SpreadsheetGear Namespace > IWorkbooks Interface : OpenFromStream Method

Open an existing workbook in a newly created instance of IWorkbook.

[Visual Basic]
Overridable Function OpenFromStream( _    ByVal stream As Stream _ ) As IWorkbook
[C#]
virtual IWorkbook OpenFromStream(    Stream stream );
[C++]
virtual IWorkbook* OpenFromStream(    Stream* stream )
[C++/CLI]
virtual IWorkbook^ OpenFromStream(    Stream^ stream )

Parameters

stream
The stream containing the workbook to open.

Return Type

The opened workbook.

Remarks

The stream must consist solely of a file which SpreadsheetGear for .NET is able to read. If the stream is not seekable, this method will copy the stream to a MemoryStream and read the workbook from the MemoryStream.

The various workbook settings which make a workbook read-only in an end user workbookSet have no affect at this level. These settings are available as IWorkbook properties.

Requirements

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

See Also

IWorkbooks Interface  | IWorkbooks Members

 

 


See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.

Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.

SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.