...
Open the file (Report.rtf) in MS Word to take a look at it. All kind of parameters between # are visible. Moreover, a Boolean expression is used in: #GM<0.4[1]#INSUFFICIENT#INSUFFICIENT[1]: When GM is smaller then 0.4, the text INSUFFICIENT is shown. More information on the possibilities with templates is given in the description of the function TEMPLATE$() in the wiki.
...
The WINWORD$() function will create Word files named Reportnamed Report*.doc in doc. in your report directory and returns the name of this file to Report$to Report$. In multiple case situations a number (*) is added to the name of the document.
...