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

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.

Signature
C#
C#
 public boolean AlwaysUseUnicode{ get; set; }
Signature
vb.net
vb.net
Public Property AlwaysUseUnicode() As Boolean
Example
Code Block
csharp
csharp
titleC#

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

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

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

          '--- Set AlwaysUseUnicode
          oWordApplication.AlwaysUseUnicode = False