winform正在使用dsoframer迅速"Unable to display the inactive document.Click here to reacitive the document."

    于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档。

版权声明:本文博主原创文章,博客,未经同意不得转载。

原文地址:https://www.cnblogs.com/lcchuguo/p/4833631.html