jsreport / jsreport-docx

jsreport recipe rendering word docx
MIT License
10 stars 3 forks source link

Chart in <#docxList></docxList> #32

Open NickBok opened 3 years ago

NickBok commented 3 years ago

jsreport 2.11.0

the following is min example, that opens ok in libra office, but notifies "file corrupted" for msword 2021-06-17_09-45-42

pofider commented 3 years ago

Thank you, looping over charts like this isn't supported so far probably. Could you please also share a playground demo so we have it complete and take a look? https://playground.jsreport.net/

NickBok commented 3 years ago

https://playground.jsreport.net/w/NickBok/LoaYIKik - here is the simplified test. It does not work if chart is inside "docxList", "each" or "if" tag. Output File from the example: 59f85975626d0e108ee23f5179591bf2.docx

pofider commented 3 years ago

Great! Thank you. I apologize, normally we would try to implement this immediately, but we will need to postpone it this time a little bit. We are now trying to reach the major v3 release and this uses all our focus. We get to this soon afterward, thank you for your understanding.

NickBok commented 3 years ago

I've found the internal point, that causes the issue. MS Word does not work correctly, if there is null in the data. It works correctly, if i set up an empty string instead of null