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

WordApplication.Save(Document, String)

Descri= ption

=20

Writes a Document to a file.

= =20
C#
=20
 public void Save(Document doc, System.String fileName)
=20
=20
vb.net
=20
Public Sub Save(ByVal doc As Document, ByVal fileName As String)
=20
=20

Parameters

= =20
doc
The=20 Document to save.=20
fileName
The= full filename to save the=20 Document to.=20

Exceptions

= =20
System.Ex= ception
Thrown if there is an error saving the file.=20

Remarks

The= =20 WordApp= lication.Preserve property is used to specify the way WordWriter will s= ave 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

Examples

=20
C#
=20

          app.Preserve =3D true;
          app.Save(doc, "@C:\sample.doc");
        
=20
=20
vb.net
=20

          app.Preserve =3D True
          app.Save(doc, "C:\sample.doc")
        
=20
------=_Part_8790_1817079541.1711661094932--