setLanguage

setLanguage

TRIAL / ADVANCED / PREMIUM

Sets the default language of the Word document.

Description
public 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: