I'm not sure if this would be of help in your case, but my app has to produce lots of tables and stuff, and I do it in HTML, but instead of trying to convert it to MS Word, I just write the HTML file and call Word to open it from my app (it does open html). Then the users can save it to word or pdf or anything they like.