I have a program which connects to a database for a company, and it needs to be able to print invoices etc. I would like to be able to design the template for the invoices and other documents it will produce in MS word, and have the program add the data from the database to the document, and then print it. I've seen programs that use word in this way before, and it might also allow the user to modify the template easily themselves without inventing my own word processor. It doesnt have to be word, but if not it needs to be free software to distribute with my app.
The alternative is designing all my documents using GDI code, which would be very time consuming and impossible to edit by the user.
Any advice or other alternatives are appreciated.
ps Sorry for posting twice, I accidentally put my first post on the c++ board, so I've had to repost it here.