how avoid changing of template

P

Peter Lingo

Hello
I've written a VB6-application for word-automation. The App starts word and
creates a new doc which is based on a word-template. After filling out the
doc with text and formfields I interrupt the reference from the VB6 to word.
After saving the document and closing them I am asked if the changing of the
template should be save too. What can be the reason that the template is be
changed and how can I avoid the dialog? In the code there is no line which
touches the content of this template.

Thanks Peter
 
J

Jezebel

Doing things like querying document properties or updating styles can make
Word think the template needs to be saved. Monitor the value of
ActiveDocument.AttachedTemplate.Saved to find the line that does it. Or
simply set this value to TRUE to work around the problem.
 

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