We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Document default language


We are unable to access document default language using Java Word API.

Is there a way to get this information ?

We need getter AND setter on this property


Hi Jean-Pascal,

Thanks for your inquiry. Please
note that there is no setting in Microsoft Word document that controls
the language of the document as a whole. Instead, you can get the
language of any text Run in Microsoft Word document using the
Font.LocaleId property. So, if you want to discover the language setting
of the document you should probably iterate through all Runs in the
document and choose LocaleId that is occurring most often.

For the list of locale identifiers see