Xceed Words for .NET v5.0 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Document Class / SaveAs Method / SaveAs(Stream,String) Method
The stream for the new Document.
The password for this Document, if any.


In This Topic
    SaveAs(Stream,String) Method
    In This Topic
    Saves the current Document as a new Document using the provided stream.
    Syntax
    'Declaration
     
    Public Overloads Overridable Sub SaveAs( _
       ByVal stream As Stream, _
       Optional ByVal password As String _
    ) 
    'Usage
     
    Dim instance As Document
    Dim stream As Stream
    Dim password As String
     
    instance.SaveAs(stream, password)
    public virtual void SaveAs( 
       Stream stream,
       string password
    )

    Parameters

    stream
    The stream for the new Document.
    password
    The password for this Document, if any.
    Remarks
    If the Document is password protected, and no password or an incorrect password is provided, an exception is thrown.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also