Problem adding visio2003 activex control to form

S

Suresh

Hey all

I am trying to add visio 2003 to my vb/vb.net project but I am getting this strange error. I have Successfully added the control to my toolbar in both vb & vb.net but when I try to add the control to my form I get the following error message

In vb6
An unspecified error ocurred
System Error &H80004005(-2147467259). Unspecified error

In Vb.ne
An unspecified error ocurred
ClassFactory cannot supply requested class

Someone please help me get rid of these errors. Even if you only have a slightest idea please let me know, it would be a great help to me

Thanks
Suresh
 
C

Chris Roth

Suresh,

I had some problems with the design time control myself, that I never
completely figured out.

You might try deleting the AxInterop.VisOcx.dll from you bin and obj
directories, removing the reference from your project, then starting over.

What I have been doing is placing a Frame control on the form where I want
the Visio control, then I add the control dynamically at runtime. You don't
gain very much having a Visio design-time control anyway. It's fairly simple
to create a VisInit routine that sets the various properties that you would
set through the designer when the form loads...

--

Hope this helps,

Chris Roth
Visio MVP
visioguy @ extremely warm mail.com



Suresh said:
Hey all,

I am trying to add visio 2003 to my vb/vb.net project but I am getting
this strange error. I have Successfully added the control to my toolbar in
both vb & vb.net but when I try to add the control to my form I get the
following error message:
In vb6:
An unspecified error ocurred.
System Error &H80004005(-2147467259). Unspecified error.

In Vb.net
An unspecified error ocurred.
ClassFactory cannot supply requested class.

Someone please help me get rid of these errors. Even if you only have a
slightest idea please let me know, it would be a great help to me.
 

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