Closed GoogleCodeExporter closed 9 years ago
Hi Mario,
Thank a lot for your explanation and attached docx. It seems that it's a
problem with preprocessing. But today I have no time to study it.
I will see this problem when I will have time.
Regards Angelo
Original comment by angelo.z...@gmail.com
on 13 May 2014 at 2:18
hello Angelo,
this issue is really causing us a lot of trouble. I have been trying to fix it
myself, but haven't succeeded so far yet, unfortunately.
I think it is linked to the fact that a <w:r> is supposed to have only one
<w:t> : RBufferedRegion.setTcontent(String c).
In the class MergefieldBufferedRegion I tried changing getTRegion as follows,
but it doesn't seem to work :
public BufferedElement getTRegion()
{
if ( tRegion == null )
{
// tRegion = super.findFirstChild( "w:t" );
tRegion = getParent().findLastChild("w:t");
}
return tRegion;
}
Do you have any idea when you might find the time to have a deeper look at this
problem ? It would help us a lot.
Thanks in advance,
Mario
Original comment by mario.cl...@gmail.com
on 7 Aug 2014 at 9:19
Hi mario,
It's very hard for me to find time for XDocReport because I'm very busy with
oen other open source project which works well (a lot of issues).
I have created a JUnit with your case at
https://code.google.com/p/xdocreport/source/browse/integrationtests/fr.opensagre
s.xdocreport.core.test/src/test/java/fr/opensagres/xdocreport/document/docx/prep
rocessor/Issue401.java
It's not activated (uncomment @Test). If I find time, I will fix it.
Original comment by angelo.z...@gmail.com
on 7 Aug 2014 at 10:04
Ok I have commited a fix
https://code.google.com/p/xdocreport/source/detail?r=97b41c46da031f83e2213965a29
179f8c25bd0d4
Please try it and tell me if it works for you.
Regard's Angelo
Original comment by angelo.z...@gmail.com
on 7 Aug 2014 at 11:37
It seems to work perfectly.
Thanks a million. You're the best !
Mario
2014-08-07 13:37 GMT+02:00 <xdocreport@googlecode.com>:
Original comment by mario.cl...@gmail.com
on 7 Aug 2014 at 5:07
> It seems to work perfectly.
Cool!
>Thanks a million. You're the best !
Thank's!
Next time, if you some problem with preprocessing, please create a simple JUnit
test like I have done. It's boring to do that but it will help me a lot because
of my available little time.
Regard's Angelo
Original comment by angelo.z...@gmail.com
on 7 Aug 2014 at 5:49
Original issue reported on code.google.com by
mario.cl...@gmail.com
on 13 May 2014 at 2:01Attachments: