This is best described by way of example:
I have a template document called TemplateC1.doc (don't want it to be .DOT if possible because don't want to be forced to keep it with all the other Word templates). The 'template' is full of VBA code which does all sorts of fancy stuff. A Delphi program will make a copy of TemplateC1.doc into a specific folder (for argument's sake let's say it is c:\ClientFolders\Smith) and call it C1.doc. Delphi program then opens up Word with the c1.doc as a parameter. Some fancy VBA code is executed upon opening and the user is then expected to work in C1.doc. The problem is, if the user wants to discard C1.doc, he can't because it has been created and Word doesn't recognise it as a temporary file.
My question is:
When Delphi creates c1.doc, is there some way that it can create it, so Word knows it is a temporary file and treats it as such (i.e. if user says he doesn't wish to save, it will disappear forever!)
Alternatively, if I cannot create a temporary file, is there a way of self-destructing a document?