Open a read-only file

B

Bernie

Hi

When I open a read-only VSD file is get the message

"This file is opened read-only. Shape numbering cannot be applied"

How can I suppress this message

I tried to set AlertResponse=1 but this is not the solution

Bernie
 
J

JuneTheSecond

I thought your drawing has any macro to count the number of shgapes.
My idea is to set option not to run macro when you open drawing.
 
B

Bernie

JuneTheSecond said:
I thought your drawing has any macro to count the number of shgapes.
My idea is to set option not to run macro when you open drawing.

I open the file with "disabled macros"

Set docobj = g_VisioApp.Documents.OpenEx(File_name,
visOpenMacrosDisabled)

Bernie
 
M

Mark Nelson [MS]

Normally, AlertResponse is the correct solution, but not all Visio add-ons
respect this setting. This may be the case with this message from the
Number Shapes add-on.

If you'd like to remove the add-on's persisted event from the document so
that it does not attempt to do anything, you can follow the instructions in
this article:
http://blogs.msdn.com/visio/archive/2007/08/24/automatic-behaviors-in-visio.aspx


--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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