See Also

IWorkbook Interface  | IWorkbook 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 to write the workbook to.
fileFormat
The file format to save the workbook in.
See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

SaveToStream Method

SpreadsheetGear Namespace > IWorkbook Interface : SaveToStream Method

Saves this workbook to a stream in the specified FileFormat.

[Visual Basic]
Overridable Sub SaveToStream( _    ByVal stream As Stream, _    ByVal fileFormat As FileFormat _ )
[C#]
virtual void SaveToStream(    Stream stream,    FileFormat fileFormat );
[C++]
virtual void SaveToStream(    Stream* stream,    FileFormat fileFormat )
[C++/CLI]
virtual void SaveToStream(    Stream^ stream,    FileFormat fileFormat )

Parameters

stream
The stream to write the workbook to.
fileFormat
The file format to save the workbook in.

Remarks

Note that the various workbook settings which make a workbook read-only in an end user workbookSet have no affect at this level.

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

IWorkbook Interface  | IWorkbook 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.