Opening and controlling stencils and diagrams
- From: byroncul@xxxxxxxxxxxxx
- Date: Mon, 10 Sep 2007 14:44:55 -0700
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?
.
- Prev by Date: RE: Is it possible to assign dynamic text in a shape?
- Next by Date: Re: Opening and controlling stencils and diagrams
- Previous by thread: RE: Is it possible to assign dynamic text in a shape?
- Next by thread: Re: Opening and controlling stencils and diagrams
- Index(es):
Relevant Pages
|
Loading