Skip to Main Content
InterSystems Ideas
We love hearing from our users. Tell us what you want to see next and upvote ideas from the community.
* Bugs and troubleshooting should as usual go through InterSystems support.
Status Done by Community
Categories InterSystems IRIS
Created by Yuri Marx
Created on Jul 18, 2025

ObjectScript API to create MS Word files based on templates

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

  • ADMIN RESPONSE
    Aug 7, 2025

    Thank you for submitting the idea.

    This idea was implemented by Developer Community member(s). Please check the solution in the comments.

  • Admin
    Irene Mikhailova
    Aug 7, 2025

    @Yuri Marx, thank you for implementing this idea

    🖥 Download app here: iris4word

  • Robert Cemper
    Jul 21, 2025

    My wild guess:
    Isn't there some ready-made solution in Python that can be imported / embedded ?