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

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

上一篇:windows API递归遍历文件夹下所有文件


下一篇:C#视频总结