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
Wiki Markup
{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.{excerpt}
{signature:C#}
 public boolean AlwaysUseUnicode{ get; set; }
{signature}{signature:vb.net}
Public Property AlwaysUseUnicode() As Boolean
{signature}
{example}{code:csharp|title=C#}

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

          //--- Set AlwaysUseUnicode
          oWordApplication.AlwaysUseUnicode = false;
        {code}
{code:vb.net|title=vb.net}

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

          '--- Set AlwaysUseUnicode
          oWordApplication.AlwaysUseUnicode = False
        {code}

{example}