Skip to end of metadata
Go to start of metadata

Description

The CultureInfo property allows you to override the server's default locale when generating a new Word file. For example, to generate a US English document on a French operating system, you could use CultureInfo to set the Word file's System.Globalization.CultureInfo to US English.

C#
vb.net

Remarks

Set CultureInfo to a System.Globalization.CultureInfo object. This object represents information about a culture including its alphabet, calendar, and date formats. When setting CultureInfo, import the System.Globalization namespace to the ASP.NET page, for example, to import the namespace to a code-behind page, use:

C#
vb.net

CultureInfo must include both language and country (for example "fr-BE" for French-Belgium).

See System.Globalization.CultureInfo for more information about the class, its members, and a list of CultureInfo codes.

Examples

C#
vb.net
  • No labels