首页 > Windows开发 > 详细

winform中使用dsoframer提示"Unable to display the inactive document.Click here to reacitive the document."

时间:2014-11-19 01:11:51      阅读:1252      评论:0      收藏:0      [点我收藏+]

    在winform中使用dsoframer 1.3载入word文档,但是在axFramerControl1.Open("NPOI.docx");在axFramerControl1控件中却显示Unable to display the inactive document.Click here to reacitive the document.

遇到这种情况的解决办法有两种方式,一是代码实现设置控件属性,二是通过控件属性设置。

`代码设置:axFramerControl1.ActivationPolicy = DSOFramer.dsoActivationPolicy.dsoKeepUIActiveOnAppDeactive;

选择控件属性在ActivationPolicy通过下拉菜单选择属性为dsoKeepUIActiveOnAppDeactive。

即可设置成功,运行即可看到加载后正常显示的word文档。

winform中使用dsoframer提示"Unable to display the inactive document.Click here to reacitive the document."

原文:http://blog.csdn.net/zqckzqck/article/details/41257959

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!