Message-ID: <584007174.10169.1711715265144.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10168_337867006.1711715265144" ------=_Part_10168_337867006.1711715265144 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html WordApplication.Preserve

WordApplication.Preserve

Description

=20

Sets or returns a boolean that represents whether or not WordWriter will= preserve feature of an existing document that it does not natively support= . Setting this to false can result in smaller file sizes, but features that= are not natively supported by WordWriter will be stripped out. This is set= to true by default.

=20
C#
=20
 public boolean Preserve{ get; set; }
=20
=20
vb.net
=20
Public Property Preserve() As Boolean
=20
=20

Remarks

The main advantage= to setting the=20 preserve property to false is that it can significantly reduce= the file size of the resulting Word document. This is recommended if it is= known that only supported features are in the document, especially when cr= eating large documents.=20

Examples

=20
C#
=20

          //--- Return Preserve
          bool preserve =3D oWordApplication.Preserve;

          //--- Set Preserve
          oWordApplication.Preserve =3D false;
        
=20
=20
vb.net
=20

          '--- Return Preserve
          Dim preserve As Boolean =3D oWordApplication.Preserve

          '--- Set Preserve
          oWordApplication.Preserve =3D False
        
=20
------=_Part_10168_337867006.1711715265144--