Connection Added event not firing consitently

N

Niranjan Marathe

Hi All,

I have a Visio solutions which uses COM addins devloped using C#.NET. The
solution subscribes to Visio's connectionadded event to figure out if a
connector is glued to a shape. I am adding one more document to the Visio
application. The problem is the connectionadded event is fired regularly for
the page in first document but it doesn't fire at all or fires for the first
time for the page in newly added document.

As soon as I save the second document re-opened, which is saved before
closing the event starts firing for second document too.

Any ideas? I will appreciate the help extended.

Thanks,

Niranjan
 
J

JuneTheSecond

ConnectionAdded events starts not only page but also visio.application.
You might try for visio.application.
 
N

Niranjan Marathe

THANKS A LOT JuneTheSecond. It worked like anything! And the events are now
firing consistently too ! But still what might be the reason that the event
is not firing consistently on page level. I am just curious.

I appreciate your help and time taken to look into the issue.

Thanks,

Niranjan
 
M

Michel LAPLANE

At what level have you added your ConnectionAdded ? Are you sure that you
declare your eventlist at page level for each page created ?
Niranjan Marathe said:
THANKS A LOT JuneTheSecond. It worked like anything! And the events are
now firing consistently too ! But still what might be the reason that the
event is not firing consistently on page level. I am just curious.

I appreciate your help and time taken to look into the issue.

Thanks,

Niranjan
 

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