sitimoen / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

condition #if not working #285

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying a hello world with Freemarker and put a condition in the docx file, 
but it does not work.
I tried:

[#if name?has_content]
Sdfsdfsdf sdf sdf 
[/#if]

<#if name?has_content>
Sdfsdfsdf sdf sdf 
</#if>

[#if name??]
Sdfsdfsdf sdf sdf 
[/#if]

<#if name??>
Sdfsdfsdf sdf sdf 
</#if>

The replacing fields is working fine but not the conditional fields.

Original issue reported on code.google.com by oueslatibilel216@gmail.com on 29 Jul 2013 at 5:37

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

Your problem comes from you don't use mergefield to insert FM directives.
I suggest you to read 
https://code.google.com/p/xdocreport/wiki/DocxDesignReport and 
https://code.google.com/p/xdocreport/wiki/DocxReportingQuickStart

Regards Angelo

Original comment by angelo.z...@gmail.com on 29 Jul 2013 at 7:22

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi,

Thank you for your answer, its working fine now :)

Regards, Bilel

Original comment by oueslatibilel216@gmail.com on 29 Jul 2013 at 11:07

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 29 Jul 2013 at 11:58