Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

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.

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

The main advantage to setting the 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 creating large documents.

Example
Code Block
csharp
csharp
titleC#

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

          //--- Set Preserve
          oWordApplication.Preserve = false;
        
Code Block
vb.net
vb.net
titlevb.net

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

          '--- Set Preserve
          oWordApplication.Preserve = False