You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "Park, Jee [USA]" <Pa...@bah.com> on 2014/10/20 17:17:43 UTC
XWPF Checkbox
Good Morning devs,
I am having some issues programmatically checking a checkbox value using POI's xwpf api, and can't seem to find any resources online. Can anybody point me in the right direction? I am able to pull the CTTc of the document and manually check whether the element is a checkbox, however I cannot find a way to have that checkbox checked. Thank you for your time.
Regards,
Jee H. Park
Consultant
Booz | Allen | Hamilton
________________________
Annapolis Junction, MD 20701
Mobile: 301.943.1799
Office: 301.489.3488
park_jee@bah.com<ma...@bah.com>
Re: XWPF Checkbox
Posted by Andreas Beeker <an...@gmx.de>.
Hi,
so what's the difference in the zip/xml files, when you save it with / without a check?
(currently I don't have an Office version to reproduce it - Libre office can't save checkboxes
in *.docx)
When you identify the different xml attributes/elements you can either simply set it with
the corresponding ct-xmlbeans-element or incase the old ecma schema doesn't
provide an interface to the element, you can set it via a xmlbeans xml-cursor.
If in doubt, simply provide the two documents and I try to give you the snipplet.
Andi
On 20.10.2014 17:17, Park, Jee [USA] wrote:
> I am having some issues programmatically checking a checkbox value using POI's xwpf api, and can't seem to find any resources online. Can anybody point me in the right direction? I am able to pull the CTTc of the document and manually check whether the element is a checkbox, however I cannot find a way to have that checkbox checked. Thank you for your time.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org