Preventing SaveAs

M

Martin Evans

I need to be able to stop users doing SaveAs because our VB application
manages the file's location....

I can trap the saveAs event, but only after the SaveAs dialog window has
opened. I know I can use the application.AlertResponse to automatically
'press' cancel on the dialog but doing this across the entire visio
application will reduce funtionality. I have tried using the BeforeModal
event to see if I can 'see' the event queue and check for the onSave event,
but I don't get very far with this approach.

Does anyone hve any suggestions?

My only remaining approach is to write code to have the windows API to sit
there waiting for the dialog window to appear then blow it away before the
user can do anything (messy).

I have considered just taking the saveas menu option away but from what I
can see there is nothing to stop the user circumventing this by creating a
SaveAs button.

Sorry for the cross posting. The MS Visio newsgroups seem as confused as the
Visio object model ;)

Thanks,
Martin
M.P.Evans@***nospam***goachiever.com
 

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