oWord=createobject("word.basic") WITH oWord .filenew(cTemplateDoc) .FILEPRINT(1,1,0,cFileToprint,,,,,,,,1,,) && Print a ready file .fileexit(2) && Close word - no save endwith release oWordAnd another :
oWord=createobject("word.basic") WITH oWord .filenewdefault() .insert("Some text ...") .fileprint() .fileexit(2) && Close word - no save endwith release oWordFor more detailed examples and mailmerge, see KB\FAQ\Win32api section, "interacting word using word basic".