Open a visio file (.VSD) in read-only format

P

Pradeep

I am working on a C# app using Visio designer activex control.
I am not able to use OpenEx method to open a file with extension .vsd.
Only files with extension .vss can be opened using OpenEx method.
My requirement is to open a .vsd file in read only format so that user will
not be
able to make any changes to the visio file. That is, User cannot delete or
move a
shape from the .vsd file nor can he add a new shape to the file.
Help me out with a solution
 
D

David Parker

You need to set the src property of the DrawingControl to load a vsd
In fact, this will open a copy. You will need to handle the save in code if
you want to overwrite the original document.
 
J

JuneTheSecond

To ope drawing on Drawing Control, OpenEx method is not available.
Just available is Src property.
So, if you wish to protect the original drawing, you need to alarm user to
stop over file in your logic.
 
Top