Message-ID: <398112967.8003.1711627863793.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8002_585863666.1711627863793" ------=_Part_8002_585863666.1711627863793 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html WordApplication.Save(Document, System.IO.Stream)

WordApplication.Save(Document, System.IO.Stream)

Description

=20

Writes a Document to a stream in t= he form of a Microsoft Word document.

=20
C#
=20
 public void Save(Document doc, System.IO.Stream @out)
=20
=20
vb.net
=20
Public Sub Save(ByVal doc As Document, ByVal out As System.IO.Stream)
=20
=20

Param= eters

=20
doc
The= =20 Document to save.=20
out
The= =20 Stream to write the file = to.=20

Excep= tions

=20
System.Exception
Thrown if there is a problem saving the file.=20

Remarks<= /h2> The=20 WordAppl= ication.Preserve property is used to specify the way WordWriter will sa= ve the document. When the=20 preserve property is set to true, WordWriter attempts to prese= rve all formatting and features that it doesn't directly support. This incl= udes Fields, Footnotes, Hyperlinks, Comments, and Anchored Images. When the= =20 preserve property is false, only those features directly suppo= rted by WordWriter will be preserved. This includes all Tables, Lists, Head= ers and Footers.=20

Example= s

=20
C#
=20
app.Save(doc, strm);
=20
=20
vb.net
=20
app.Save(doc, strm)
=20
------=_Part_8002_585863666.1711627863793--