Drawing Control IsDirty?

F

Forrest Liu

I wonder if there is a way to know whetere there has be changes made to the
document in the drawing control.
What I want to accomplish is pretty basic. I tried to search the net and
books but could not find a way. When the user want to close the visio
document, I want to check if there are changes and prompt the user to save
the file first if there are changes.
 
C

Chris Roth [ Visio MVP ]

Try visControl.Document.Saved

The Saved command is the dirty flag you are looking for. The idea is that if
the doc has been saved, it is "freshly clean". I believe this works inside
of the drawing control as well.

Even better, you can programmatically set the Saved flag, which is handy for
discarding changes.

--

Hope this helps,

Chris Roth
Visio MVP
 
F

Forrest Liu

This works. Thanks a lot!


Chris Roth said:
Try visControl.Document.Saved

The Saved command is the dirty flag you are looking for. The idea is that if
the doc has been saved, it is "freshly clean". I believe this works inside
of the drawing control as well.

Even better, you can programmatically set the Saved flag, which is handy for
discarding changes.

--

Hope this helps,

Chris Roth
Visio MVP
 

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