B
byroncul
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?
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?