Closing a drawing document,,,,

G

genc ymeri

Hi,
I'm opening a drawing document in a C#form with this command :

AxDrawing.src = "filenane"

How can I "close" or unload this drawing document from my Axdrawing object
????? I tried the below commands but none of them worked :

thanks in advance.

PS:


==============
AxDrawing.src ="";
AxDrawing.refresh;
===============
AxDrawing.close();
AxDrawing.document.close();
===================
 
M

Mai-lan [MS]

There are three options for loading a blank drawing after you've loaded an
existing drawing into the control.

1. Load a blank drawing by name (SRC="c:\\blank.vsd", for example).

2. Dynamically destroy and recreate a new instance of the control.
Note that this will wipe out any events that you're synced with for your
control. This is a totally blank slate for the control. Use this option when
you don't care about preserving event syncing with your control.

3. Select all on the existing drawing and delete the shapes on the
Page 1, delete the remaining pages, and then delete the masters and styles
as well. If you're trying to wipe a drawing clean but keep the
styles/formatting ("Reset Drawing" functionality), this is the option to
choose.

Mai-lan

Microsoft Corp.
 
M

Mark Nelson [MS]

FYI, if you choose option 3, do not delete Page 1 from the drawing. Visio
is a bit flaky when you delete the only page in a document. A new blank
page is automatically created, but sometimes the old data structures do not
get cleared out.

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