Automate Create Word Attachment in New Document

I have a simple notes database - where a user creates a new doc from a basic form - with a sequential number field. It is working fine. The basic form has 3 fields1)Author - simple

2)Seq number - working fine

3)Rich text

STEP 2 is to insert a word doc (from a template) into the Richtext field. When the user creates a new doc I would like to insert a word doc in the rich text field from a template (which I was thinking of putting in About database doc).

I would like the Word Doc to take its name from the Seq number field.

The user would create the new notes doc - the word attachment would automatically get created in the RT field, then the user could edit/save the word doc and then save the notes doc.

Any ideas on some code for the RT field to achieve this?

Subject: Automate Create Word Attachment in New Document

Ok i’ve posted an example how to do this on my blog since its rather long.

The script finds a word document template located in another document, creates a new instance of that template as a word document, replaces the values of some form fields, then saves the new document, and attaches it in a new document. This script is something I use for a specific task, and its not at all generic enough to just use, so you’ll have to tweak it to suit your needs, but it will give you the idea.

Visit my blog @ www.hodgebloge.com