/* this is basic sample code only */
DEFINE VARIABLE chWord AS COM-HANDLE NO-UNDO.
CREATE "word.application" chWord NO-ERROR.
chWord:Documents:ADD("C:\test\test.dotx").
/* add data to the file here and save it as a document. */
chWord:QUIT.
RELEASE OBJECT chWord.
Thank you for your reply,
I'm not trying to create a template but to fill it with informations from database.
I would like also to open it (into browser or Word) with the whole document fullfilled so that the user can have a look at it and record it if wanted.
I will give a try with your solution though i'm not sure it can works with Webspeed.