Page 1 of 1

Recent changes in Word? AlternateContent around Textboxes!

PostPosted: Tue Jul 10, 2018 4:00 am
by Axelock
Hi All,

We have implemented an application where uses can build complex DOCX templates in Word and we fill them with some data.
There is a heavy need for placing text in textboxes.

We have using the latest Word 2016.


Recently I have noticed my program eventually fails to find the textboxes in new files.

When I peek into it, I found ot, the Run of the Textboxes had surrounded by AlternateContent/Coice elements:

<w:r>
<w:rPr>
...
</w:rPr>
<mc:AlternateContent>
<mc:Choice Requires="wps">
<w:drawing>
...
</w:drawing>
</mc:Choice>
<mc:Fallback>
<w:pict>
...
</mc:Fallback>
</mc:AlternateContent>
</w:r>

But these are not read by the docx4j!!

I cant get rid of them with the File menu Compatibility button. (It got hidden as of this is the latest docx format.)


How can I manage this?
Please help us!

Kind Regards,

Gabor

Re: Recent changes in Word? AlternateContent around Textboxe

PostPosted: Tue Jul 10, 2018 8:16 am
by jason
Code for this has been in GitHub since late May.

It will be in 3.4.0-beta, due for release soon.

Re: Recent changes in Word? AlternateContent around Textboxe

PostPosted: Tue Jul 17, 2018 10:22 pm
by Axelock
Ah, thank you for reply! (I new here, have looked at "Replies 1" as "Posts 1"... :/ )

OK, so we had to wait for 3.4.0 final version.

Many thanks,

Gabor

Re: Recent changes in Word? AlternateContent around Textboxe

PostPosted: Wed Jul 18, 2018 5:00 pm
by jason
it'd be great if you could try the 3.4.0 release candidate: announces/docx4j-3-4-0-release-candidate-please-test-it-t2710.html

Re: Recent changes in Word? AlternateContent around Textboxe

PostPosted: Thu Aug 02, 2018 10:41 pm
by Axelock
Hi Jason!

I have managed to test he new docx4j-6.0.x ( ;) ) version in our environment, and the AlternateContent problem is solved, everything works smoothly! :D

Thank You for the fixing!

Kind Regards,
Gabor