poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zecharya.com" <...@zecharya.com>
Subject XWPF set text language
Date Tue, 18 Dec 2018 05:40:10 GMT
Hello, I would like to set the language for an XWPF document, so the end user’s spellcheck
can correctly identify it.

For example, in the following method:

private void wordPara(XWPFDocument document, String text, boolean bold) {
	XWPFParagraph p = document.createParagraph();
	XWPFRun runCF = p.createRun();
	runCF.setBold(bold);
	runCF.setText(text);
}

I see that XWPFRun has the method getLang(), but not setLang()
What is the proper way to do this?

Thank you!
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message