Including stencil in drawing

G

Guy007

I am using Visio in an ASP.NET application. One things that I needed to do
was to create my own stencil, which the user will use to create his own
drawings.

I need a way to include the stencil (VSX file) into the drawing file itself
(VSD or VDX file), so that the user can simply open the drawing file and
start adding shapes immediately. This would eliminate the need of having to
open the stencil as well.

How can I incorporate the stencil into the drawing?

Thanks!
 
P

Paul Herber

I am using Visio in an ASP.NET application. One things that I needed to do
was to create my own stencil, which the user will use to create his own
drawings.

I need a way to include the stencil (VSX file) into the drawing file itself
(VSD or VDX file), so that the user can simply open the drawing file and
start adding shapes immediately. This would eliminate the need of having to
open the stencil as well.

How can I incorporate the stencil into the drawing?

If you have a template then save the template (with the stencil open)
with the workspace enabled. Then when saving the drawing save with
workspace.
However, there is no error checking on this, if the stencil is missing
then it just won't open it. If you open it yourself in code then at
least you can check that it exists and bring up an error condition if
not.
 

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