Word reports filled from your data by Jago WesterduinWord reports filled from your data by Jago Westerduin

Word reports filled from your data

Portfolio project
Jago Westerduin
Word reports filled from your data. The template stays an ordinary Word document with placeholders typed where the data goes. The tool fills it from a spreadsheet export, a database or an API and writes one finished .docx per project, period or client.
It handles what usually breaks such scripts. Word splits typed text into pieces wherever the formatting or the spell checker changes, so one placeholder is often stored in three or four parts. The engine reads each paragraph as a whole and keeps the formatting of the text it replaces.
Rows repeat per item, sections repeat per work package, totals are computed from the same list as the table, and a section without data is left out. Headers and footers are filled too.
Checked before a report goes out. A missing value stops the run with every problem listed. After filling, every piece of text from the data is looked up in the report. On three sample reports 146 of 146 values appear and LibreOffice finds no placeholder left. The check also caught my own template leaving out the project title.
Known limits, stated up front. Not yet opened in Microsoft Word itself; LibreOffice opens every report. No images or charts yet. Standard-library Python, under 10 ms per report, 12 automated tests.

0 likes · 0 views · Nov 21, 2026

Fills an ordinary Word template from your data, one finished .docx per project. 146 of 146 values shown, 0 placeholders left, under 10 ms a report.

Tags