Hi,

With the help of a Global Template (Main.dot), I start the creation of
a document (based on Report.dot).
After the document is finished i want the readers automatically have
the "Document Map" visible.

The document is distributed in a large organisation, and at home of the
readers (students). My problem rises when the connection to the
Report.dot is broken.

How do i add to the document:
ActiveDocument.ActiveWindow.DocumentMap = True
Or is there a better solution?

Thank you for your time.

Ward

Re: Showing the Document Map by Word

Word
Mon Feb 07 01:02:04 CST 2005

G'day "Ward" <wardv@nospam.xs4all.nl>,

Give it a Document_Open event that has that one line.


Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Ward reckoned:

>Hi,
>
>With the help of a Global Template (Main.dot), I start the creation of
>a document (based on Report.dot).
>After the document is finished i want the readers automatically have
>the "Document Map" visible.
>
>The document is distributed in a large organisation, and at home of the
>readers (students). My problem rises when the connection to the
>Report.dot is broken.
>
>How do i add to the document:
> ActiveDocument.ActiveWindow.DocumentMap = True
>Or is there a better solution?
>
>Thank you for your time.
>
>Ward


Re: Showing the Document Map by Ward

Ward
Mon Feb 07 02:29:01 CST 2005

G'day Steve,

Thank you for your reaction,

My problem was: how to get the macro in the document in stread of the
template.
Finaly i created a module named modAutoExec.bat, and placed it on the server.

In the Main.dot i create the document and import the macro:
Set docNew = Documents.Add(Template:="Report.dot")
docNew .VBProject.VBComponents.Import FileName:= "modAutoExec.bas"

the module looks like:
Public Sub AutoOpen()
ActiveDocument.ActiveWindow.DocumentMap = True
End Sub
Public Sub AutoClose()
ActiveDocument.ActiveWindow.DocumentMap = False
End Sub

Thanks mate :)

Ward


"Word Heretic" wrote:

> G'day "Ward" <wardv@nospam.xs4all.nl>,
>
> Give it a Document_Open event that has that one line.
>
>
> Steve Hudson - Word Heretic
>
> steve from wordheretic.com (Email replies require payment)
> Without prejudice
>
>
> Ward reckoned:
>
> >Hi,
> >
> >With the help of a Global Template (Main.dot), I start the creation of
> >a document (based on Report.dot).
> >After the document is finished i want the readers automatically have
> >the "Document Map" visible.
> >
> >The document is distributed in a large organisation, and at home of the
> >readers (students). My problem rises when the connection to the
> >Report.dot is broken.
> >
> >How do i add to the document:
> > ActiveDocument.ActiveWindow.DocumentMap = True
> >Or is there a better solution?
> >
> >Thank you for your time.
> >
> >Ward
>
>

Re: Showing the Document Map by Word

Word
Mon Feb 07 03:03:15 CST 2005

G'day "Ward" <Ward@discussions.microsoft.com>,

An easier way is to include a separate Code Module in your main
template that you copy over into This_Document.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Ward reckoned:

>G'day Steve,
>
>Thank you for your reaction,
>
>My problem was: how to get the macro in the document in stread of the
>template.
>Finaly i created a module named modAutoExec.bat, and placed it on the server.
>
>In the Main.dot i create the document and import the macro:
>Set docNew = Documents.Add(Template:="Report.dot")
>docNew .VBProject.VBComponents.Import FileName:= "modAutoExec.bas"
>
>the module looks like:
>Public Sub AutoOpen()
> ActiveDocument.ActiveWindow.DocumentMap = True
>End Sub
>Public Sub AutoClose()
> ActiveDocument.ActiveWindow.DocumentMap = False
>End Sub
>
>Thanks mate :)
>
>Ward
>
>
>"Word Heretic" wrote:
>
>> G'day "Ward" <wardv@nospam.xs4all.nl>,
>>
>> Give it a Document_Open event that has that one line.
>>
>>
>> Steve Hudson - Word Heretic
>>
>> steve from wordheretic.com (Email replies require payment)
>> Without prejudice
>>
>>
>> Ward reckoned:
>>
>> >Hi,
>> >
>> >With the help of a Global Template (Main.dot), I start the creation of
>> >a document (based on Report.dot).
>> >After the document is finished i want the readers automatically have
>> >the "Document Map" visible.
>> >
>> >The document is distributed in a large organisation, and at home of the
>> >readers (students). My problem rises when the connection to the
>> >Report.dot is broken.
>> >
>> >How do i add to the document:
>> > ActiveDocument.ActiveWindow.DocumentMap = True
>> >Or is there a better solution?
>> >
>> >Thank you for your time.
>> >
>> >Ward
>>
>>