开发者

How to rectify InvalidActiveXStateException in WPF?

开发者 https://www.devze.com 2022-12-23 21:11 出处:网络
I am trying to make a WPF Application and using the Visio Controls. I have a dll n开发者_StackOverflowamed AxInterop.Microsoft.Office.Interop.VisOcx and I refer it to instantiate an object of the type

I am trying to make a WPF Application and using the Visio Controls. I have a dll n开发者_StackOverflowamed AxInterop.Microsoft.Office.Interop.VisOcx and I refer it to instantiate an object of the type AxDrawingControl(). Now as soon as I write this code:

AxDrawingControl objDrawControl=new AxDrawingControl();

and check the attributes of this object objDrawControl in the debug mode, I see this message: Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown.

Here is how it looks like: alt text http://www.freeimagehosting.net/uploads/fed103f4d3.jpg

Please help me to get this thing resolved! Please!

I just realized the image isn't visible. So here is the link of the image showing the error message: http://www.freeimagehosting.net/uploads/fed103f4d3.jpg

0

精彩评论

暂无评论...
验证码 换一张
取 消