Whether the above actions would trigger a prompt to save changes in Normal.dot depend on which CustomizationContext you've specified. In Word, this affect where changes to CommandBars are stored. If you haven't specified it, you really need to go back and do so :-)
And if you haven't specified it, or if you did set it to NormalTemplate, then changes are being made to Normal.dot. This means that any user who has the option "Prompt to save changes to Normal.dot" activated will see the message.
It's also unclear what you mean by "attach our application's template". If this is a VSTO project, I'd expect the user to be creating a new document from the VSTO template - to what would you be attaching it, then?
You say you've tried setting the Saved property to true for the template. But if the prompt is to save Normal.dot, then you could try to set app.NormalTemplate.Saved = true, as well.
-- Cindy Meister (Word MVP) |