Differences in Types for Visio ActiveX Control

S

Steve Cox

I am developing using the Visio ActiveX Control, and so is another developer
here. When he uses the Visio control, he has types such as:

AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl
Microsoft.Office.Interop.Visio.Shape

Whereas, I have types like this:

AxVisOcx.AxDrawingControl
Visio.Shape

In my project, the references point to a subdirectory of my project, whereas
his points to the gac/assembly directory.

Does anyone have any ideas on how to setup the references so that we both
have the same types for everything. Or how we ended up with different
configurations in the first place?
 
C

Chris Roth

Off the top of my head, a few things come to mind, I'll just throw them over
the wall to you as areas to consider:

- One of you may have started the project while still using the beta version
of Visio 2003
- I think one of you has CopyLocal set to True -- this is in the properties
for the reference.
Since Visio 2003 has to be installed on the client, and it installs it's
"stuff" to the GAC, I imagine this
is the way to go...
- You can shorten the names in your "Imports" or "using" statements. I
always do the following:

Imports Visio = Microsoft.Office.Interop.Visio
Imports VisioAX = AxMicrosoft.Office.Interop.VisOcx

Then I can type "Visio.Shape" instead of
"Microsoft.Office.Interop.Visio.Shape"

--

Hope this helps,

Chris Roth
Visio MVP
visioguy @ extremely warm mail.com
 
S

Steve Cox

Chris,

Thanks for the tip.

My settings have CopyLocal to true. I started with my co-worker's vb
project, but I must have previously imported the Visio control to local
settings or something.

When i opened his project, I had a bunch of missing references.

I guess, I'll see if I can fiddle around with my configuration to get it to
work correctly.
 
S

Steve Cox

FYI,

I had to go into add/remove programs, and change the Microsoft Office Visio
Professional Install.
I added :

Microsoft Office\Microsoft Office Visio\.NET Programmability Support
Microsoft Office\Office Tools\Microsoft Forms 2.0 .NET Programmability
Support
Microsoft Office\Office Tools\Smart Tag .NET Programmability Support

Then it installed everything into the GAC.

Thanks again Chris for pointing me in the right direction.
 

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