information edit or modify content of word tags

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

information edit or modify content of word tags

good morning

I ask for your collaboration to make edits of word files, because it only
allows me to extract the data, but it does not allow me to modify it.

this is the code that implements to extract the data of the labels.

XWPFDocument docx = new XWPFDocument (new FileInputStream (rut));
int cons = 0;
for (IBodyElement elem: docx.getBodyElements ()) {
String con = Integer.toString (cons);
if (elem instanceof XWPFSDT) {
String text = ((XWPFSDT)) .getTag ();
if (text.contains (with + "ME_DOM_NAME")) {
des.setName ((((XWPFSDT) elem) .getContent ());
if (text.contains (with + "ME_CHECK_DESTINO")) {
des.setCargo ((((XWPFSDT) elem) .getContent ());
if (text.contains (with + "ME_DEPENDENCE_DESTINO")) {
de.setDepartment ((((XWPFSDT)) .getContent ());
cons ++;
listdes.add (des);
des = new Recipient ();
docx.close ();

Sent from:

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]