Skip to end of metadata
Go to start of metadata

Description

Returns a boolean that represents whether or not WordWriter will write all text using unicode. A value of false can result in smaller file sizes but text that is not part of cp1252 (Windows-1252) will be unreadable. This is set to true by default. It is recommended that you should set this to false if it is known that only characters supported by Windows-1252 are in the document, especially when creating large documents.

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

Examples

C#

          //--- Return AlwaysUseUnicode
          bool alwaysUseUnicode = oWordApplication.AlwaysUseUnicode;

          //--- Set AlwaysUseUnicode
          oWordApplication.AlwaysUseUnicode = false;
        
vb.net

          '--- Return AlwaysUseUnicode
          Dim alwaysUseUnicode As Boolean = oWordApplication.AlwaysUseUnicode

          '--- Set AlwaysUseUnicode
          oWordApplication.AlwaysUseUnicode = False
        
  • No labels