setLanguage

setLanguage

BASIC / 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...

Return values

Void.

Code samples

Example #1

The resulting Word document looks like: