Visio 2007 Compatibility Issues

A

Asif

Hi All,

We have a Process Mapping application that uses Visio 2003 Active X
drawing control for diagram mapping using VB.NET.

We are going to upgrade / compatible our application to run on both
versions of Visio ( 2003 and 2007) but if I run our current
application on machine running Visio 2007, application crashes and does
not run.

If we open application code in Visual Studio 2003, a lot of reference
errors are shown. Some of them are given below:

Reference required to assembly 'Microsoft.Office.Interop.Visio'
containing the type 'Microsoft.Office.Interop.Visio.Document'. Add one
to your project.
Type 'Microsoft.Office.Interop.Visio.Document' is not defined.
Namespace or type 'Visio' for the Imports
'Microsoft.Office.Interop.Visio' cannot be found.
Type 'Microsoft.Office.Interop.Visio.Page' is not defined.

There is an error sign shown in References section of the Project
(Visio and VisOcx references)

Is there any way to make application compatible with both Visio
versions?

Thanks

Asif
 
P

Paul Herber

Hi All,

We have a Process Mapping application that uses Visio 2003 Active X
drawing control for diagram mapping using VB.NET.

We are going to upgrade / compatible our application to run on both
versions of Visio ( 2003 and 2007) but if I run our current
application on machine running Visio 2007, application crashes and does
not run.

If we open application code in Visual Studio 2003, a lot of reference
errors are shown. Some of them are given below:

Reference required to assembly 'Microsoft.Office.Interop.Visio'
containing the type 'Microsoft.Office.Interop.Visio.Document'. Add one
to your project.
Type 'Microsoft.Office.Interop.Visio.Document' is not defined.
Namespace or type 'Visio' for the Imports
'Microsoft.Office.Interop.Visio' cannot be found.
Type 'Microsoft.Office.Interop.Visio.Page' is not defined.

There is an error sign shown in References section of the Project
(Visio and VisOcx references)

Is there any way to make application compatible with both Visio
versions?

Are your Visio 2003 and 2007 on the same machine or on 2 different
machines.

If different then do you have the same version of the .net framework
on both?

If the same machine then which version of Visio is your code
accessing?
 
A

Asif

I checked it on same machine by installing Visio 2007 after removal of
Visio 2003.

There is only one check is there that ensures that either Visio 2003 is
installed or not which is also commented before running the code.

Also references errors are shown once application code is opened in
Visual Studio and project is failed to compile because of missing
control reference.
 
A

Asif

One more thing is that I did not install the whole Office 2007 suite.
Only Visio 2007 is installed to check. Is it making some thing wrong?
 
P

Paul Herber

I checked it on same machine by installing Visio 2007 after removal of
Visio 2003.

There is only one check is there that ensures that either Visio 2003 is
installed or not which is also commented before running the code.

Also references errors are shown once application code is opened in
Visual Studio and project is failed to compile because of missing
control reference.

Hold on, how are you running your code if it won't compile?
 
A

Asif

I did completely remove Visio 2003 control and references from project
and windows form then add Visio 2007 drawing control (version 12.0) to
compile and run code on machine running Visio 2007.

The code I was talking about to run is application setup which was
created after commenting Visio 2003 checks on different machine running
Visio 2003.
 
A

Asif

Sorry, my mistake I think I made some confusion. There are the steps
that I did

1- Run Application setup after commenting version checks (Visio 2003
drawing control checks) on machine running Visio 2007 but the
application failed to run by giving error "Class not registered"

2- Open application source code and replace Visio 2003 control and
references with Visio 2007, then run the code on same machine running
Visio 2007.This time application run.

I need to run the same application (Visio 2003 control based) on
machine running Visio 2007 without or minimum changes of code.
 
P

Paul Herber

I did completely remove Visio 2003 control and references from project
and windows form then add Visio 2007 drawing control (version 12.0) to
compile and run code on machine running Visio 2007.

Do you have the same version of .NET on both machines ?
 

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