Recreating a Visio drawing control

V

vince

I have an embedded Visio drawing control that resides in a C# form that can
be closed by the user. When the form is recreated, I can load the Visio
file, but when I try to set the correct page I get an exception reading
"Inappropriate target object for this action." The file seems to load
correctly and I can display information just fine. Do I need to do something
special to destroy or recreate the drawing control instance? I've tried
closing the document in the dispose for the form. I have also tried loading
a blank Visio file in the dispose.

Thanks in advance.
 
V

vince

Fixed this by setting the page by the drawing control window object instead
of the application object.
 

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