G
GMorris
Hi all,
I've just started using Visio 2007, and it's a great product from what I've
seen so far. One of the things I did was download the SDK so I could
fool with it in Visual Studio. Sure enough, there was a project type for
a Visio Add-on (or Add-in, can't recall now), and I opened one up in VB
to take a look.
Now, just as a test, I added a line of code to both of the event handlers
provided to display a MsgBox upon entry and exit from the Add-#n. Not
ever having written an external Add-#n for Visio, I wasn't sure how I
would need to include it in a project, and especially being .NET I had no
idea how to make it active in a Visio session, so I did the next logical
things: I built the tiny Add-#n, then once a successful build I closed VS
and then opened Visio to attempt to use it and display the messages.
To my surprise (and wondering eyes), as soon as I fired up Visio the
Add-#n was active! I got the MsgBox, dismissed it, and then began to
look around for it and how the heck Visio found and knew where it was.
Much less, why did Visio just assume that I built the Add-#n to be in any
project I open? I could not find the thing anywhere in Visio, and there
was even a list that it probably should have been in, but wasn't.
So, I guess the next thing to do is find out if anyone can tell me why this
happens (like a default or something), and how would one write an Add-
#n for a particular template or document and ONLY that template, etc.
What steps then to package it and run on someone else's Visio machine?
This is all a little confusing to me, as I was never good enough with C to
use the old Add-in templates that were provided, and at the time there
just wasn't support for any other languages that I could find anyway. It's
just blowing my mind why this little-bitty test of an Add-#n has been
"adopted" by Visio when I never even told it the thing exists! Any help or
direction to resources about this would be great. I've written apps in VBA
through the Visio IDE, but they are clunky and slow, buggy and difficult to
manage at best. I'd really like to master using VS to create some power
for Visio apps and at the same time take FULL advantage of the OO
capabilities of .NET rather than fight with Visio's VBA. Thanks.
I've just started using Visio 2007, and it's a great product from what I've
seen so far. One of the things I did was download the SDK so I could
fool with it in Visual Studio. Sure enough, there was a project type for
a Visio Add-on (or Add-in, can't recall now), and I opened one up in VB
to take a look.
Now, just as a test, I added a line of code to both of the event handlers
provided to display a MsgBox upon entry and exit from the Add-#n. Not
ever having written an external Add-#n for Visio, I wasn't sure how I
would need to include it in a project, and especially being .NET I had no
idea how to make it active in a Visio session, so I did the next logical
things: I built the tiny Add-#n, then once a successful build I closed VS
and then opened Visio to attempt to use it and display the messages.
To my surprise (and wondering eyes), as soon as I fired up Visio the
Add-#n was active! I got the MsgBox, dismissed it, and then began to
look around for it and how the heck Visio found and knew where it was.
Much less, why did Visio just assume that I built the Add-#n to be in any
project I open? I could not find the thing anywhere in Visio, and there
was even a list that it probably should have been in, but wasn't.
So, I guess the next thing to do is find out if anyone can tell me why this
happens (like a default or something), and how would one write an Add-
#n for a particular template or document and ONLY that template, etc.
What steps then to package it and run on someone else's Visio machine?
This is all a little confusing to me, as I was never good enough with C to
use the old Add-in templates that were provided, and at the time there
just wasn't support for any other languages that I could find anyway. It's
just blowing my mind why this little-bitty test of an Add-#n has been
"adopted" by Visio when I never even told it the thing exists! Any help or
direction to resources about this would be great. I've written apps in VBA
through the Visio IDE, but they are clunky and slow, buggy and difficult to
manage at best. I'd really like to master using VS to create some power
for Visio apps and at the same time take FULL advantage of the OO
capabilities of .NET rather than fight with Visio's VBA. Thanks.