Visio 2003 Drawing Control

B

Balaji Krishnasamy

I'm using Visio 2003 Drawing Control in my application. When I'm working in
my application, if I open Visio 2003 application (external to my application
process), then the drawing control used in my application fails. Is that a
common problem or something specific to my application?
 
B

Balaji Krishnasamy

Thanks Chris. I'll explain my problem in more detail.

I have a MDI application, in which one of the child forms use visio drawing
control.

I also use visio application for someother purpose. I have written addons
which gets loaded when particular menus are clicked from application. These
addons get loaded without problem in visio application, when there is no
child form in MDI application that uses visio drawing control.

But if there is a child form with visio drawing control loaded once in MDI
application, then visio application never loads the addons until i close my
application and restart the visio application again. This is the case even
if i destroy the child form (having visio drawing control) within MDI
application.

I can't understand things happening in between. As soon as a visio drawing
control is opened, is there any thing happening that the visio applications
opened there after also points to the same visio object (in running object
table), loaded for drawing control?
 
M

Mark Nelson [MS]

Maybe the add-ons are trying to get an instance of the Visio application
object and grabbing the wrong one. I seem to remember that Visio published
some sample code that illustrated the proper way to get the current
application instance.

--
Mark Nelson
Microsoft Corporation

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

Balaji Krishnasamy

Thanks Mark, I use "Visio.Application" ProgId in getting current instance of
Visio. Is that the problem? Shall I try with "Visio.Drawing" for getting
current instance of drawing control and "Visio.Application" for getting
current instance of visio application. Is there any difference between
Visio.Drawing and Visio.Application?
 

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