Discussion:
Error In Visio 2007 Drawing Control
(too old to reply)
Asif Imran
2007-01-16 12:22:52 UTC
Permalink
Hi all,

An exception is occurred when I am going to use Visio 2007 Active X Drawing
Control in my sample application by adding new page after opening any
drawing file in Drawing Control.

I did do the following on my machine running Windows XP Professional
(Service Pack 2), NET Framework 1.1, Visio 2007 SDK and Visio 2007
Professional Edition.

I did do the following steps:

a) Run project and open any drawing file. File opens normally.

b) To add new drawing page through Insert Page Form, following exception is
occurred on clicking Insert Page Form's Ok button.

An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll.
Additional information: Object reference not set to an instance of an
object.

c) If I click on Start button (running project in debugging mode through
Visual Studio) another exception is thrown

An unhandled exception of type 'System.Runtime.InteropServices.SEHException'
occurred in system.windows.forms.dll
Additional information: External component has thrown an exception.

A sample project, drawing file created in Visio 2007 and PowerPoint (snap
shots for reproducing error) presentation can be downloaded at the following
URL:

http://drawingtools.webs.io/visio2007/TestProject2007.zip

Can anyone tell me about whets I am going wrong?

Thanks

Asif
Michel LAPLANE
2007-02-18 20:42:53 UTC
Permalink
It sound's like a problem that i faced when using Framework 1.1 et 2.0 on
the same machine.

Try tou add a Visio.exe.config file with required version "1.1" in the same
directory of Visio.exe
Be aware that if you compile later with .Net 2.0 you must delete the config
file
Post by Asif Imran
Hi all,
An exception is occurred when I am going to use Visio 2007 Active X
Drawing Control in my sample application by adding new page after opening
any drawing file in Drawing Control.
I did do the following on my machine running Windows XP Professional
(Service Pack 2), NET Framework 1.1, Visio 2007 SDK and Visio 2007
Professional Edition.
a) Run project and open any drawing file. File opens normally.
b) To add new drawing page through Insert Page Form, following exception is
occurred on clicking Insert Page Form's Ok button.
An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll.
Additional information: Object reference not set to an instance of an
object.
c) If I click on Start button (running project in debugging mode through
Visual Studio) another exception is thrown
An unhandled exception of type
'System.Runtime.InteropServices.SEHException'
occurred in system.windows.forms.dll
Additional information: External component has thrown an exception.
A sample project, drawing file created in Visio 2007 and PowerPoint (snap
shots for reproducing error) presentation can be downloaded at the
http://drawingtools.webs.io/visio2007/TestProject2007.zip
Can anyone tell me about whets I am going wrong?
Thanks
Asif
Loading...