Hi,

I'm trying to create a program that produces a Word document. The user would input which sections of the document he/she wants and the program would spit out the desired sections.

I have wrote this (not so great) program that is in an RTF format. Each section is an RTF file and I just append the selected sections together.

My question: Is it possible to do this in a Word format? I know I can make a template in Word, but can I make one that is variable in size and the size determined at runtime? Can I make a template and then have the program delete the sections that were not selected?

Any ideas?