Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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}
{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}
Signature
C#C#
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}{signature:vb.net
vb.net
}
Public Property AlwaysUseUnicode() As Boolean
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle