Sets a locale to the document.
Name | Type | Description |
LCID | number | The locale specified. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); Api.SetLocale("en-CA"); oWorksheet.GetRange("A1").SetValue("A sample spreadsheet with the language set to English (Canada)."); builder.SaveFile("xlsx", "SetLocale.xlsx"); builder.CloseFile();