ASP Programmer's Reference
WordTemplate.SetCultureInfo Method
|
 |
Syntax:
Sub WordTemplate.SetCultureInfo(cultureInfo As String)
Description:
The SetCultureInfo method 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 SetCultureInfo to set the
Word file's locale to US English ("en-US"). For a list of culture name strings, see
CultureInfo Class
.
Parameter:
- cultureInfo
SetCultureInfo takes a culture name string that includes a language and
country (for example "fr-BE" for French-Belgium). For a list of culture name strings, see
CultureInfo Class
.
Example:
[VB]
Set oWW = Server.CreateObject("SoftArtisans.WordTemplate")
'--- Set the Word file's locale to US English.
oWW.SetCultureInfo "en-US"
oWW.Open(Server.MapPath("./Template.doc"))
oWW.SetDataSource arrValues, arrNames
oWW.Process
oWW.Save Response, "Output.doc", False
Set oWW = Nothing
Copyright © 2003, SoftArtisans, Inc.