L
Larry
I create a simple window form project in C# and added the Visio 2007 Drawing
control on a form and hit F5 and I get the following in InitializeComponent
method
on the line
((System.ComponentModel.ISupportInitialize)(this.axDrawingControl1)).EndInit();
It works if I use Visio 2003 in VS2005. I can consistantly reproduce on two
different machine. Did I miss something?
Larry
--------------------------------------------------
System.Runtime.InteropServices.COMException was unhandled
Message="Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG))"
Source="System.Windows.Forms"
ErrorCode=-2147221164
StackTrace:
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid&
clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid
clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at WindowsApplication2.Form1.InitializeComponent() in
C:\Projects\WindowsApplication2\WindowsApplication2\Form1.Designer.cs:line 54
at WindowsApplication2.Form1..ctor() in
C:\Projects\WindowsApplication2\WindowsApplication2\Form1.cs:line 16
at WindowsApplication2.Program.Main() in
C:\Projects\WindowsApplication2\WindowsApplication2\Program.cs:line 17
control on a form and hit F5 and I get the following in InitializeComponent
method
on the line
((System.ComponentModel.ISupportInitialize)(this.axDrawingControl1)).EndInit();
It works if I use Visio 2003 in VS2005. I can consistantly reproduce on two
different machine. Did I miss something?
Larry
--------------------------------------------------
System.Runtime.InteropServices.COMException was unhandled
Message="Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG))"
Source="System.Windows.Forms"
ErrorCode=-2147221164
StackTrace:
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid&
clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid
clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at WindowsApplication2.Form1.InitializeComponent() in
C:\Projects\WindowsApplication2\WindowsApplication2\Form1.Designer.cs:line 54
at WindowsApplication2.Form1..ctor() in
C:\Projects\WindowsApplication2\WindowsApplication2\Form1.cs:line 16
at WindowsApplication2.Program.Main() in
C:\Projects\WindowsApplication2\WindowsApplication2\Program.cs:line 17