opensagres / xdocreport

XDocReport means XML Document reporting. It's Java API to merge XML document created with MS Office (docx) or OpenOffice (odt), LibreOffice (odt) with a Java model to generate report and convert it if you need to another format (PDF, XHTML...).
https://github.com/opensagres/xdocreport
1.22k stars 372 forks source link

If-else condition in XDocReport. #492

Open DanielCiorea opened 3 years ago

DanielCiorea commented 3 years ago

Hello, can anyone give me an example of how to use if-elseif-else condition in XDocReport?

I tried the following code and it works:

#if(2==2) test #end

But the following code does not work:

`#if(3==2) test

elseif(2==2) test2

else test3

end`

Akashreddy1980 commented 3 years ago

Hello, if your issue isn't resolved yet then try using #if(3==2) test #elseif(2==2) test2 #{else}test3 #end