poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "pj.fanning" <fannin...@yahoo.com>
Subject Re: XWPF set text language
Date Tue, 18 Dec 2018 08:05:33 GMT
I raised a bug - https://bz.apache.org/bugzilla/show_bug.cgi?id=63013

It looks like a missing setter to me.

If you can create your own subclass of XWPFRun, you could try this extra
method:

    public void setLang(String lang) {
        CTRPr pr = run.isSetRPr() ? run.getRPr() : run.addNewRPr();
        CTLanguage ctLang = pr.isSetLang() ? pr.getLang() : pr.addNewLang();
        ctLang.setVal(lang);
    }



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-User-f2280730.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message