Currently, IRIS doesn't have ObjectScript functionality for creating Word files. Python or Java are required. Furthermore, even using these languages, it's a complex process that requires many lines of source code.
Therefore, the idea is to use an ObjectScript API that allows you to specify a %DynamicObject with the data to be written to the Word file and the Word template that will be used for the final file.
The solution should support Word templates with a markup language that allows you to specify where and how the data from the %DynamicObject will be written, while also maintaining the static content of the template.
A possible implementation would be with this free Java solution: https://github.com/Sayi/poi-tl
An article how to do this using Java: https://www.baeldung.com/poi-tl-ms-word
Thank you for submitting the idea.
This idea was implemented by Developer Community member(s). Please check the solution in the comments.
@Yuri Marx, thank you for implementing this idea
🖥 Download app here: iris4word
My wild guess:
Isn't there some ready-made solution in Python that can be imported / embedded ?