Embedding Visio 2005 control in VS 2005 app

Hi All,

I am trying to use the visio drawing control in a windows application on Visual Studio 2005 Beta2. Here's what I am doing:

* Add the Visio drawing control library (COM) to my toolbox;
* Drag-and-drop the drawing control into the Form (this works ok, I can see the control inside the form);
* Run the application, but I get the following error:

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

I tried doing the exact same thing on VS 2003, and it worked fine. Am I missing anything? Any ideas on how to solve this? (VS used the same Visio COM dll in both VS 2003 and 2005 projects).

TIA
Rubens

[679 byte] By [Rubens] at [2007-12-16]
# 1
Ok, just found the explanation (and a solution) here:

http://blogs.msdn.com/mailant/archive/2005/04/22/411042.aspx

Rubens at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2

Hello, It does not work in VB 2005 Express Eition. Please advise. Thanks! DSONG

DSONG at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 3

Hi. I have the same problem that you at the moment of deployed my application, which uses sdk visio dll and Visual Studio .NET 2005.

I realized a deploiment proyect with dll of visio but I have the same problems.

You resolve this problem?

Thanks.

Javier13 at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 4

Did you find a solution yet? I have the same problem with Visio 2007 Drawing Control in VS 2005.

Larry

LarryLau at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified