Description
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.
C#
public boolean Preserve{ get; set; }
vb.net
Public Property Preserve() As Boolean
Remarks
The main advantage to setting thepreserve 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.
Examples
C#
//--- Return Preserve
bool preserve = oWordApplication.Preserve;
//--- Set Preserve
oWordApplication.Preserve = false;
vb.net
'--- Return Preserve
Dim preserve As Boolean = oWordApplication.Preserve
'--- Set Preserve
oWordApplication.Preserve = False
