A
Asif
We are using Visio 2003 Active X drawing control in our application
that uses EventSink class for capturing shape connects events. We are
creating the instance of EventSink class and our operations at
DocumentOpened event of Visio Drawing Control.
This works fine with Visio 2003 Control but if we replace the control
with Visio 2007 drawing control and when going to open any drawing
file by setting control Src property to file name, control throws an
exception with the following message:
A first chance exception of type 'System.NullReferenceException'
occurred in axinterop.microsoft.office.interop.visocx.dll
Additional information: Object reference not set to an instance of an
object.
If EventSink code is commented this error will not occur and file
opens normally.
Can anyone help about how to solve the issue?
Thanks
Asif
that uses EventSink class for capturing shape connects events. We are
creating the instance of EventSink class and our operations at
DocumentOpened event of Visio Drawing Control.
This works fine with Visio 2003 Control but if we replace the control
with Visio 2007 drawing control and when going to open any drawing
file by setting control Src property to file name, control throws an
exception with the following message:
A first chance exception of type 'System.NullReferenceException'
occurred in axinterop.microsoft.office.interop.visocx.dll
Additional information: Object reference not set to an instance of an
object.
If EventSink code is commented this error will not occur and file
opens normally.
Can anyone help about how to solve the issue?
Thanks
Asif