Add-in and stencils

B

BBD

Hi all,

I am developing Visio C# VSTO add-in and this add-in requires specific
stencil always be loaded when this add-in is active. This is very similar to
WBS tree-view sample, where WBS tree-view specific stencil is loaded every
time WBS tree-view add-in becomes active. I examined WBS tree-view VB.NET
code very much, but still have big problems to understand how it loads
stencil required. As I see OpenEx is not used in WBS tree-view code for this
purpose. Is there any good link what describes how to load specific (or
default) stencil for particular add-in?

Thanks,
BBD
 
D

David Parker

Well, the Visio SDK has some useful examples.

For example, the "Stencil Enumeration in a Window" (under User Interface)
demonstrates how to check whether your stencil is already open, and "Opening
Documents" (under Documents) shows how to open a stencil.

If you are publishing your solution, then do check out the Visio Publishing
Tool in the SDK...
 

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