Ignoring save on exit

A

Andy

My Visio application has two modes, design and run mode. When in run
mode, the status/colours of shapes are updated on the diagram. When I
exit Visio, it prompts to save the diagram. If I am in run mode I don't
want the diagram saved as the only changes have been made via the
automation and these are reapplied when the application is started.

I have tried setting the saved flag on the document, but this appears
to have no effect.

Thanks
 
A

Andy

Thanks, that was perfect

In Document_QueryCancelDocumentClose which is triggered before the save
dialog, I set the AlertResponse to 7 (NO). In
Document_BeforeDocumentClose I revert the AlertResponse back to its
previous value.
 

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