StimVinsh / xdocreport

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

IF #137

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

sorry but how can i use the condition "IF" in my docx template ?

{ IF { MERGEFIELD $pfidelite.Nbs } <> "0" "{ MERGEFIELD $pfidelite.Nbs }" "" }

thanks

Original issue reported on code.google.com by gaspardg...@gmail.com on 10 Sep 2012 at 9:13

GoogleCodeExporter commented 8 years ago
Hi,

You cannot use MERGEFIELD IF. If you wish to use if condition, you must use 
Freemarker ou velocity syntax. Please see 
http://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainCondition
I think you can find sample in our docx samples distribution.

Regards Angelo

Original comment by angelo.z...@gmail.com on 10 Sep 2012 at 9:31

GoogleCodeExporter commented 8 years ago
thanks

Original comment by gaspardg...@gmail.com on 10 Sep 2012 at 10:05

GoogleCodeExporter commented 8 years ago
Hi, do you plan to fix this issue ? if i can't use the MERGEFIELD IF, i cannot 
include formatted text block in my template

Original comment by bruno.me...@neuros.fr on 19 May 2014 at 6:53

GoogleCodeExporter commented 8 years ago
As I had explained, this issue is invalid. You cannot use "MERGEFIELD IF" and 
you must use velocity/Freemarker syntax to manage condition 
https://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainCondition

Regards Angelo

Original comment by angelo.z...@gmail.com on 19 May 2014 at 8:50