C
Cindy M.
Hi Jan,
working from a web interface does this
If are maintaining contact to the
Word application after opening the document, then declare and instantiate an
object variable of the type Word.Document and set it to the template you're
opening as a document. (And then use this object with .AttachedTemplate)
If you can't do it that way, but can link up to Word at a later point, then
you can loop through the Documents collection, checking some property (name
or path, for example). When you find it, just use the Close method.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail
That would involve automating the Word application. Not everyone who isThis is far worse. Actually the files which I open and which uses the
template are in WordML, so I expect them to be openeed at least in 2003
version. ;-) However as a developer I have the responsibility for this and
if you know how can I close it explicitly when it is not needed, I will do
it.
working from a web interface does this
Word application after opening the document, then declare and instantiate an
object variable of the type Word.Document and set it to the template you're
opening as a document. (And then use this object with .AttachedTemplate)
If you can't do it that way, but can link up to Word at a later point, then
you can loop through the Documents collection, checking some property (name
or path, for example). When you find it, just use the Close method.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail