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 did run our application on machine running Visio 2007 Professional
and observe the strange behavior of Drawing control that none of
Drawing control event ( Page Add , Shape Add etc) are raised.
If we open the project code on the same machine (Visio 2007 based) in
Visual Studio 2003, a lot of errors are shown. Some of them are given
below:
Type 'AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl' is not
defined.
Type 'AxMicrosoft.Office.Interop.VisOcx.EVisOcx_PageAddedEvent' is not
defined.
Type 'AxMicrosoft.Office.Interop.VisOcx.EVisOcx_ShapeAddedEvent' is
not defined.
The referenced component 'AxVisOcx' could not be found.
A .NET assembly wrapper for the dependent type library 'VisOcx' could
not be found.
The referenced component 'Visio' could not be found.
The referenced component 'VisOcx' could not be found.
There is an error sign (Yellow Icon) 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
We have a Process Mapping application that uses Visio 2003 Active X
drawing control for diagram mapping using VB.NET.
We did run our application on machine running Visio 2007 Professional
and observe the strange behavior of Drawing control that none of
Drawing control event ( Page Add , Shape Add etc) are raised.
If we open the project code on the same machine (Visio 2007 based) in
Visual Studio 2003, a lot of errors are shown. Some of them are given
below:
Type 'AxMicrosoft.Office.Interop.VisOcx.AxDrawingControl' is not
defined.
Type 'AxMicrosoft.Office.Interop.VisOcx.EVisOcx_PageAddedEvent' is not
defined.
Type 'AxMicrosoft.Office.Interop.VisOcx.EVisOcx_ShapeAddedEvent' is
not defined.
The referenced component 'AxVisOcx' could not be found.
A .NET assembly wrapper for the dependent type library 'VisOcx' could
not be found.
The referenced component 'Visio' could not be found.
The referenced component 'VisOcx' could not be found.
There is an error sign (Yellow Icon) 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