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

		public virtual Stream SaveToStream(Workbook workbook)
	
		Public Overridable Function SaveToStream(ByVal workbook As Workbook) As System.IO.Stream
	

A Workbook object representing the workbook to save.

A object representing the workbook.

If there is a problem reading from the workbook object.

		//--- Creates a new Workbook object and saves it to a stream
		ExcelApplication xla = new ExcelApplication();
		Workbook wb = xla.Create();
		Stream stream = xla.SaveToStream(wb);
	
		'--- 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)