CodePage Property (RenderingApplication Object)

CodePage Property (RenderingApplication Object)

Important  The Collaboration Data Objects (CDO) 1.2.1 Rendering objects are not installed by or supported for use with Exchange Server 2003 or later.

The CodePage property returns or sets the code page to be used by all rendering objects created with the CreateRenderer method. Read/write.

Syntax

objRendApp.CodePage

Data Type

Variant (Long, Object, or String)

Remarks

If the CodePage property is a long integer, it represents the code page to be used for character representation. If CodePage is an object, it contains an IDispatch pointer to an IRequest object. The CDO Rendering Library obtains from this object an HTTP Accept-Language header and sets the code page to the value that most closely matches the header. If CodePage is a string, it is treated as an International Standards Organization (ISO) language name, and the code page is set from the Microsoft® Windows NT® registry entry for that language.

Examples of values for the CodePage property are "USA" and 1252.

If a long integer value for CodePage is invalid, the code page remains unchanged. If a string value is not a recognizable language name, the appropriate default code page for the locale is used. If the requested code page has not been installed in the Windows NT server, an error is returned.

The setting of the CodePage property affects character selection and any dependent data considerations. The collating sequence, the sort order, and the formats for time, date, and currency representation are controlled by the LCID property, which is automatically set to correspond to the code page information whenever you set CodePage.

The settings of CodePage and LCID do not affect the locale settings of any Session object. Each session has its own SetLocaleIDs method.

See Also

Concepts

RenderingApplication Object