How to get the current template in Word using C#?

N

Nick

Hi,

I would like to know how to reference to the current running template
using C#, and how to save the setting to this template.

Thanks

Nick
 
C

Cindy M -WordMVP-

Hi Nick,
I would like to know how to reference to the current running template
using C#, and how to save the setting to this template.
If the template isn't actually opened and being used as a file/document
in Word, then it's
doc.AttachedTemplate

This does support the .Save method, but there are some things you can
only do with a template if it's actually opened like a document
(OpenAsDocument method).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 
Top