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}

	{signature:
}
Signature
vb.net
vb.net
		Public Overridable Function SaveToStream(ByVal workbook As Workbook) As System.IO.Stream
	{signature}

{parameters}
	{param:workbook}
		A {{Workbook}} object representing the workbook to save.
	{param}

{returns}
	A {msdn:
Parameters
Param
workbook
workbook

A Workbook object representing the workbook to save.

Returns

A

Msdn
System.IO.Stream

|

System.IO.Stream

} object representing the workbook. {returns} {exceptions} {exception:System.Exception} If there is a problem reading from the workbook object. {exception} {example} {code:csharp|title=C#}

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} {code:
Code Block
vb.net
|title=
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)
	
{code} {example}