Opening and controlling stencils and diagrams



I am writing a windows form app in C# using the Visio SDK. I want the
user to open a file and only have access to a specific set of stencils
that I load for them..... regardless of what was saved with the file
previously. I can control the stencils shown by using...

axDrawingControl1.Document.Application.Documents.OpenEx("Basic_U.vss",
(short)Visio.VisOpenSaveArgs.visOpenDocked +
(short)Visio.VisOpenSaveArgs.visOpenRO);

The problem is when I attempt to use the OpenEX to get the vsd file
nothing shows up. I am using this line of code:

axDrawingControl1.Document.Application.Documents.OpenEx("d:\\test\
\test.vsd", (short)Visio.VisOpenSaveArgs.visOpenNoWorkspace);

If I use the SRC property like this:

axDrawingControl1.Src = openFileDialog.FileName

It shows up, but it contains the stencils I don't want them to have.

How can I control the stencils the user has access to?

.



Relevant Pages

  • Re: Classic Arcade Grafix now selling Proto Defender artwork... :-(
    ... machines were almost certainly sprayed by hand, but the stencils used were ... researchers at MIT adapted a large vertical miller to a n electronic control ... Reading the pattern of holes in the tape, ... for cabinet production is far from science fiction.. ...
    (rec.games.video.arcade.collecting)
  • Re: How do I add a Yellow Text Tag?
    ... this is a Control Handle. ... Some Visio shapes have these built in to ... You can view the Shapesheet of a shape by ... >> I have been trying to figure out how to do this with some stencils that I ...
    (microsoft.public.visio.general)
  • RE: line jump
    ... stencils. ... You can control the behavior by File> Page Setup> Layout and ...
    (microsoft.public.visio.general)
  • Multiple AxDrawing controls and stencils.
    ... I have multiple AxDrawing control instances I have opened up inside an ... I have about 3 stencils I need to open up. ... That called for each drawing control. ...
    (microsoft.public.visio.developer)

Loading