Visual Studio 2012 中的 Visio 绘图控件失败 [英] Visio Drawing Control Fails in Visual Studio 2012

查看:50
本文介绍了Visual Studio 2012 中的 Visio 绘图控件失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Studio 2012 中使用 Visio 14.0 绘图控件 (Visio 2010) 时遇到问题.使用此控件的 VS2012 中似乎存在错误.您可以通过启动一个新的 win 表单应用程序轻松重现这一点,然后从工具箱中选择 Microsoft Office 14.0 Visio 绘图控件并将其放在表单上.一旦你放下它,你就会得到这个错误:

I am having trouble using Visio 14.0 Drawing Control (Visio 2010) in Visual Studio 2012. It looks like there is a bug in VS2012 using this control. You can reproduce this easily by starting a new win form application, then from toolbox choose Microsoft Office 14.0 Visio Drawing Control and drop it on the form. As soon as you drop it you will get this error:

错误 hresult e_fail 已从对 com 组件的调用返回"

"error hresult e_fail has been returned from a call to a com component"

推荐答案

以防万一其他人有同样的问题,这是一个 Visual Studio 2012 错误(MS 正在处理它).解决方法是将 Office 安装目录(通常是C:\Program Files (x86)\Microsoft Office\Office14")附加到 PATH 环境变量中.

Just in case someone else have the same problem, this is a Visual Studio 2012 bug (MS working on it). A workaround is to append the Office installation directory (usually it is "C:\Program Files (x86)\Microsoft Office\Office14") to the PATH environment variable.

这篇关于Visual Studio 2012 中的 Visio 绘图控件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆