Error In Visio 2007 Drawing Control

A

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.

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
 
M

Michel LAPLANE

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
 

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