SetOutputStream Method
The stream to write the excel document to.
Syntax
[VB.NET] Public Sub SetOutputStream(ByVal ArchiveStream As System.IO.Stream)
[C#] public void SetOutputStream(System.IO.Stream archiveStream);
Remarks
This method should be used when the spreadsheet is to be written to a stream when Save is called.
By default, and when this is set to null, the component will write to the file specified to the Save method. However, when this is a valid stream, the data will be written to the stream.