Visio 2003 Control - Strange Behaviour

A

Asif

Hi all,

We have an application that uses Visio 2003 drawing control for
process mapping. On general we capture Visio control events
(ShapeAdded, PageAdded etc) and perform our custom tasks. Our
application runs fine but if some one upgrades Visio 2003 to Visio
2007 and then back to Visio 2003 by uninstalling and reinstalling of
Visio 2007 to Visio 2003, installs and runs our application, Visio
drawing control does not raise any event.

We did do a little bit research and it seems that removal of Visio
2007 has issues ( may be not completely removed/ corrupted or still
leave some hidden entries that does not allow Visio 2003 control to
work properly). Here are few reviews by people that experience issues
in uninstalling Visio 2007.

http://www.eggheadcafe.com/software/aspnet/29278744/help--cannot-open-or-re.aspx
http://help.lockergnome.com/office2/Visio-2007-uninstall-Help-ftopict782067.html

Also it seems that using Repair option in Visio 2003 fix this problem
but it still did not work.

One more thing that if I install Visio 2007, uninstall and re-install
Visio 2003, opens Visual Studio, select and add Visio drawing control
in my Tool Box and once try to drop it on form a message box is
appeared with the information:

"One or more of the types in the assembly unable to load."

Control does not appear on form but its references (AxVisOCx, Visio
and VisOcx) are seen in References section.

Can anyone help me why it is happening or have some workaround for it?

Thanks

Asif
 
M

Michel LAPLANE

got same problems and i have notice this :

When you build an application with Visual Studio on a PC that hold both
Visio 2003 and Visio 2007, the IDE choose the last version of Interop or
Drawing control. So when you distribute your application to customer that
hold only Visio 2003, you must build on a pc that hold only Visio 2003.

So what you must do if you have one PC is to uninstall Visio 2007, reinstall
Visio 2003. Open your VS project, delete the Visio Drawing Control reference
and interop in your project add it again it will use the visio 2003 (version
11.0).

Unfortunately to my knowledge there are no way to uninstall Visio Drawing
Control. I have not try to use regasm to unregister Visio OCX perhaps it
works in removing the corresponding assembly in the GAC.
 
A

Asif

got same problems and i have notice this :

When you build an application with Visual Studio on a PC that hold both
Visio 2003 and Visio 2007, the IDE choose the last version of Interop or
Drawing control. So when you distribute your application to customer that
hold only Visio 2003, you must build on a pc that hold only Visio 2003.

So what you must do if you have one PC is to uninstall Visio 2007, reinstall
Visio 2003. Open your VS project, delete the Visio Drawing Control reference
and interop in your project add it again it will use the visio 2003 (version
11.0).

Unfortunately to my knowledge there are no way to uninstall Visio Drawing
Control. I have not try to use regasm to unregister Visio OCX perhaps it
works in removing the corresponding assembly in the GAC.

"Asif" <[email protected]> a écrit dans le message de (e-mail address removed)...










- Show quoted text -

Actually this issue happens on non-development machine (contains only
Office application). Installing Visio 2003 , upgrade to Visio 2007 and
then back to Visio 2003 process causes the application non-
functional(Drawing events not fires) even the application setup is
compiled and developed on machine that only contains Visio 2003.
 
M

Michel LAPLANE

Some information can help :

- Please look in the "windows\assembly" directory to the
Microsot.office.interop.visocx assembly and tell me what version do you
have ?
- How do you install your application ?. Do you install the
AxInterop.VisOcx.dll in your program directory an register it (to me it
could be the best way to solve the problem and to be independent of the
visio version installed. Of course the correspondant version of visio must
exist on the target machine).
- What version of framework do you have on your machine ? Look the
content of the "C:\WINDOWS\Microsoft.NET\Framework" directory.

Some other tings to try :
- try to add in the same directory of your application a config texte
file to your application a file that looks like underneath and that is named
"Myapplication.exe.config".
content of the file
<?xml version = "1.0"?>
<configuration>
<startup>
<requiredRuntime version="v1.1.4322"/>
</startup>
</configuration>
- try to add in the same directory of visio.exe (default C:\Program
Files\Microsoft Office\Visio11) a config texte file that looks the same and
that is named "visio.exe.config".
content of the file
<?xml version = "1.0"?>
<configuration>
<startup>
<requiredRuntime version="v1.1.4322"/>
</startup>
</configuration>

Hope it can help.

Please Inform me of the result.

"Asif" <[email protected]> a écrit dans le message de (e-mail address removed)...
got same problems and i have notice this :

When you build an application with Visual Studio on a PC that hold both
Visio 2003 and Visio 2007, the IDE choose the last version of Interop or
Drawing control. So when you distribute your application to customer that
hold only Visio 2003, you must build on a pc that hold only Visio 2003.

So what you must do if you have one PC is to uninstall Visio 2007,
reinstall
Visio 2003. Open your VS project, delete the Visio Drawing Control
reference
and interop in your project add it again it will use the visio 2003
(version
11.0).

Unfortunately to my knowledge there are no way to uninstall Visio Drawing
Control. I have not try to use regasm to unregister Visio OCX perhaps it
works in removing the corresponding assembly in the GAC.

"Asif" <[email protected]> a écrit dans le message de (e-mail address removed)...










- Show quoted text -

Actually this issue happens on non-development machine (contains only
Office application). Installing Visio 2003 , upgrade to Visio 2007 and
then back to Visio 2003 process causes the application non-
functional(Drawing events not fires) even the application setup is
compiled and developed on machine that only contains Visio 2003.
 

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