SaveAs Method (Stream, String)

Office Open XML

Copies the Package to the Outstream The package is closed after it has been saved

Namespace:  OfficeOpenXml
Assembly:  EPPlus (in EPPlus.dll) Version: 3.0.0.1 (3.0.0.1)

Syntax

C#
public void SaveAs(
	Stream OutputStream,
	string password
)
Visual Basic (Declaration)
Public Sub SaveAs ( _
	OutputStream As Stream, _
	password As String _
)
Visual C++
public:
void SaveAs(
	Stream^ OutputStream, 
	String^ password
)

Parameters

OutputStream
Type: System.IO..::.Stream
The stream to copy the package to
password
Type: System..::.String
The password to encrypt the workbook with. This parameter overrides the Encryption.Password.

See Also