问题描述
你好,
我已经将Visio 2007和Visio 2010同时安装在同一台开发机器上一段时间没有问题。 同时安装Visio 2013后,在尝试打开表单时,所有版本(2007,2010,2013)都会出现以下错误。
表单是托管AxDrawingControl的MdiChild。
System.NotSupportedException:无法获取"VisioDrawingControl"控件的窗口句柄。不支持无窗口ActiveX控件。
at System.Windows.Forms.AxHost.EnsureWindowPresent()
at System.Windows.Forms.AxHost.InPlaceActivate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
在System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在System.Windows.Forms.AxHost.EndInit()
调用时((System.ComponentModel.ISupportInitialize)(this.axDrawingControl1))。EndInit() ;
$
感谢任何帮助。
Hello,
I've had Visio 2007 and Visio 2010 concurrently installed on the same development machine for a while with no issues. After installing Visio 2013 also side-by-side I get the following error for all versions (2007, 2010, 2013) when trying to open a form. The form is an MdiChild hosting an AxDrawingControl.
System.NotSupportedException: Unable to get the window handle for the 'VisioDrawingControl' control. Windowless ActiveX controls are not supported.
at System.Windows.Forms.AxHost.EnsureWindowPresent()
at System.Windows.Forms.AxHost.InPlaceActivate()
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()
when calling ((System.ComponentModel.ISupportInitialize)(this.axDrawingControl1)).EndInit();
Appreciate any help.
谢谢,
Z
推荐答案
感谢您在MSDN论坛上发帖。
Thank you for posting in the MSDN Forum.
我正在尝试让一些高级工程师参与此问题,这需要一些时间。
感谢您的耐心等待和理解。
Thank you for your patience and understanding.
致以最诚挚的问候,
这篇关于无法获取'AxDrawingControl'控件的窗口句柄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!