A
Aussie Susan
I have a stencil that contains a 'ThisDocument' module which holds a
'Document_DocumentOpened()' method.
I create a new document from scratch (open Visio 2003, and use Ctrl-N to
create a new document) to which I add the stencil mentioned above (File ->
Shapes -> My Shapes -> stencilname).
At this point I would have expected the stencil's Document_DocumentOpened()
method to have been called.
I have Graham WideMan's"Visio 2003 Developer's Survival Pack" (and thanks to
those who have recommended this excellent book in my previous questions) and
I understand :
"...every Visio document (drawing, stencil or template) can have a
ThisDocument VBA module."
and
""Document events are commonly used to initialize extra drawing data ...when
a document is first opened (DocumentOpened event)..."
[quotes from page 294 of Wideman's book]
to mean that the stencils DocumentOpened event method should be called when
the stencil is opened as I have described above. However, debug.print and
msgbox statements in that method are not called and neither is the
initialisation code I have in there.
What am I doing wrong?
Thanks
Susan
'Document_DocumentOpened()' method.
I create a new document from scratch (open Visio 2003, and use Ctrl-N to
create a new document) to which I add the stencil mentioned above (File ->
Shapes -> My Shapes -> stencilname).
At this point I would have expected the stencil's Document_DocumentOpened()
method to have been called.
I have Graham WideMan's"Visio 2003 Developer's Survival Pack" (and thanks to
those who have recommended this excellent book in my previous questions) and
I understand :
"...every Visio document (drawing, stencil or template) can have a
ThisDocument VBA module."
and
""Document events are commonly used to initialize extra drawing data ...when
a document is first opened (DocumentOpened event)..."
[quotes from page 294 of Wideman's book]
to mean that the stencils DocumentOpened event method should be called when
the stencil is opened as I have described above. However, debug.print and
msgbox statements in that method are not called and neither is the
initialisation code I have in there.
What am I doing wrong?
Thanks
Susan