码迷,mamicode.com
首页 > Windows程序 > 详细

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

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

标签:winform   dsoframer   

    在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."

标签:winform   dsoframer   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!