Can I get rid of inbuilt template elements?

B

Bec

I have a rather large visio file with multiple pages and numerous hyperlinks.
Many people will be using this once it is finished. Everytime I open the
diagram I get a box come up asking me what orientation and the no. of bands I
want in a cross-functional flowchart. I don't know how it ended up there but
it must have been orginially created from a template. Without recreating the
file is there any easy way to get rid of this box? If not an easy way could I
do it with code? If so how would I go about doing this?

Thank in advance
Bec
 
M

Mark Nelson [MS]

You probably have a Persisted Event in the document. Many Visio templates
have persisted events that run special code whenever the document is opened.
This provides a lot of smart behavior in Visio diagrams. However, since you
don't want that in your current document, you need a way to get rid of the
persisted event.

The simplest way is to save your file as a Visio XML drawing (VDX
extension). Then open the file in Notepad. Go all the way to the end of
the document and look for the tag <EventList>. You should see an
<EventList> tag and then right before the end an </EventList> tag (with the
slash). Delete both tags and everything in between. Save the document and
reopen it in Visio. Now save it as the normal VSD drawing extension.

There is a Persisted Events tool in the Visio SDK that makes this easier,
but you would need to download the SDK from http://msdn.microsoft.com/visio
and then install it.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

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

Bec

Brilliant Mark! Worked like a charm. Thanks...

Mark Nelson said:
You probably have a Persisted Event in the document. Many Visio templates
have persisted events that run special code whenever the document is opened.
This provides a lot of smart behavior in Visio diagrams. However, since you
don't want that in your current document, you need a way to get rid of the
persisted event.

The simplest way is to save your file as a Visio XML drawing (VDX
extension). Then open the file in Notepad. Go all the way to the end of
the document and look for the tag <EventList>. You should see an
<EventList> tag and then right before the end an </EventList> tag (with the
slash). Delete both tags and everything in between. Save the document and
reopen it in Visio. Now save it as the normal VSD drawing extension.

There is a Persisted Events tool in the Visio SDK that makes this easier,
but you would need to download the SDK from http://msdn.microsoft.com/visio
and then install it.

--
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