Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Introducedin
8.5.1
8.5.1
Description

Excerpt

Saves a specified Workbook object to a System.IO.Stream object and returns it.

Signature
C#
C#
		public virtual Stream SaveToStream(Workbook workbook)
	
Signature
vb.net
vb.net
		Public Overridable Function SaveToStream(ByVal workbook As Workbook) As System.IO.Stream
	
Parameters
Param
workbook
workbook

A Workbook object representing the workbook to save.

Returns

A

Msdn
System.IO.Stream
System.IO.Stream
1System.IO.Stream
object representing the workbook.

Exceptions
Exception
System.Exception
System.Exception

If there is a problem reading from the workbook object.

Example
Code Block
csharp
csharp
titleC#
		//--- Creates a new Workbook object and saves it to a stream
		ExcelApplication xla = new ExcelApplication();
		Workbook wb = xla.Create();
		Stream stream = xla.SaveToStream(wb);
	
Code Block
vb.net
vb.net
titlevb.net
		'--- Creates a new workbook object and saves it to a stream
		Dim xla As New ExcelApplication()
		Dim wb As Workbook = xla.Create()
		Dim stream As System.IO.Stream() = xla.SaveToStream(wb)