[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.GcWordDocument.Save

Save Method

Save(string, DocumentType)

Saves the document to an OpenXml formatted file.

Declaration
public void Save(string fileName, DocumentType type = DocumentType.Document)
Public Sub Save(fileName As String, Optional type As DocumentType = DocumentType.Document)
Parameters
Type Name Description
string fileName

The file path to save to.

DocumentType type

The document type to save to.

Save(Stream, DocumentType)

Saves the document to a Stream.

Declaration
public void Save(Stream stream, DocumentType type = DocumentType.Document)
Public Sub Save(stream As Stream, Optional type As DocumentType = DocumentType.Document)
Parameters
Type Name Description
Stream stream

The Stream where to save document.

DocumentType type

The document type to save to.