I remember trying to write report generation using Word 97 Automation. It was so unstable, performed so slowly and had so many bugs, such as the cursor jumping out of the header if the page size was queried, that I gave up after 3 months.

And then ran into the swamp of RTF.

You have my sympathies.