I am creating a front end to a fax system. I have to give the users the ability to add cover sheets to their outbound faxes. When a fax is sent, I need to be able to use an embedded file object (Word Docs with defined merge fields) that I have saved in the database as templates. With it, I need to fill in the necessary information programmatically such as the "To", "FaxNumber" and "Comments" fields and save it as a temporary document to be sent out with the fax. Each fax and cover sheet will be processed individually so there is no need to store tables of information.
I need to know how to make a copy of the stored word doc and how to access and populate the doc fields once I access it.