setLanguage

setLanguage

BASIC / ADVANCED / PREMIUM

Sets the default language of the Word document.

Description
public void setLanguage(String lang)

Sets the default language for the whole Word document.

This is important for grammar and spell checking in the Word interface.

Parameters

lang

The language-country ISO codes: en-US, es-ES...

Code samples

Example #1

The resulting Word document looks like: