Alternatives for generating Word documents

0
I’m currently using the PDF Document Generation module to create pixel-perfect PDFs, and that part is working flawlessly. I’d like to extend the functionality so that users can either: Generate Word documents (.docx), or View a live, editable preview of the PDF directly within the app. Since Document Templates are deprecated in Mendix 10 (LTS), I’d like to avoid using that approach. What would be the best way to achieve this in the current Mendix environment? 
asked
2 answers
0

Hi Jannes,

Check the both articles. I hope it will help you.

 

https://medium.com/@mohammad.saqib_1262/how-to-generate-and-export-docx-files-using-javascript-step-by-step-guide-07745f3f731f

 

 

https://medium.com/@mohammad.saqib_1262/how-to-generate-pdf-using-simple-javascript-action-in-mendix-81d0598a2e50

answered
0

Hi Jannes,

 

I have created a heavily used solution to update Word Templates with Mendix content. The use case is particularly already having a Word template and enriching it, not necessarily creating it from scratch. So, my solution could be used, but not the best fit.

 

Demo app: https://marketplace.mendix.com/link/component/111539

Module itself: https://marketplace.mendix.com/link/component/244302

Blog: https://medium.com/mendix/how-i-automated-word-templating-in-mendix-with-the-apache-poi-api-4549163b0acc

 

I actually think for your use case document templates are still the best way to go. Perhaps this is worth a support ticket to Mendix to ask them about your use case?

answered