Template.Save() changes the behaviour of its load

P

pavan

Hi All,

I'm installing a custom template and adding my toolbar to it. I'm doing
this to make sure that upon uninstallation the toolbar goes away. This
works fine. No issues.

I've to load this template only to selected documents. This also
happens fine as I set the CustomizationContext based on my conditions.
First time the document is opened the toolbar comes as floating. Now if
the user moves the toolbar, say next to the standard toolbar and later
closes the document i do a template.Save() (upon close).

this is causing issues. Next time when any document is opened, the
custom template is getting loaded automatically (though the my
condition check fails). Is this is a known issue? What is the sol for
this?

TIA
Pavan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top