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

Re: how avoid changing of template by Jezebel

Jezebel
Fri Aug 27 17:06:36 CDT 2004

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.







"Peter Lingo" <peter.lingo@tiscali.de> wrote in message
news:cgo90p$ph6$1@online.de...
> 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
>
>



Re: how avoid changing of template by Peter

Peter
Fri Aug 27 17:21:00 CDT 2004

Thanks for the tip.

Saved = True is the solution

Regards Peter

"Jezebel" <dwarves@heaven.com.kr> schrieb im Newsbeitrag
news:emStgIIjEHA.3664@TK2MSFTNGP11.phx.gbl...
> 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.
>
>
>
>
>
>
>
> "Peter Lingo" <peter.lingo@tiscali.de> wrote in message
> news:cgo90p$ph6$1@online.de...
>> 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
>>
>>
>
>