Board logo

标题: 杰表免费版在单页面应用中有“access violation”问题,收费版没问题 [打印本页]

作者: jueying    时间: 2016-8-29 12:32     标题: 杰表免费版在单页面应用中有“access violation”问题,收费版没问题

网站是基础reactjs的单页面应用,每次打开选项卡页面会加载杰表控件。在首次打开打印页面选项卡打印没有问题,但是在关闭这个选项卡时IE会崩溃。debug发现有“access violation writing location”的错误。在试用杰表收费版时不会出现这个问题。系统是win10, 浏览器是IE11 。 下面是我们加载杰表控件的代码:
复制内容到剪贴板
代码:
componentDidMount: function() { var url= '../../../print_tool/' var cardOcx = document.createElement("object"); cardOcx.setAttribute("style", "display:none"); cardOcx.setAttribute("id", "jatoolsPrinter"); cardOcx.setAttribute("height", 0); cardOcx.setAttribute("width", 0); cardOcx.setAttribute("classid", "CLSID:B43D3361-D075-4BE2-87FE-057188254255"); cardOcx.setAttribute("codebase", "jatoolsPrinter.cab#version=5,4,0,0"); //add var div = document.getElementById("divOcxContainer"); div.appendChild(cardOcx); },
附件是debug时发现问题的一些截图,请帮忙看一下原因,谢谢

图片附件: 杰表1.JPG (2016-8-29 12:32, 93.94 KB) / 该附件被下载次数 7246
http://jatools.com/attachment.php?aid=874&k=b41dcae6db32a7c54ed3dc299e7a754c&t=1714049779


作者: admin    时间: 2016-8-30 15:50

免费版不支持事件监听




欢迎光临 杰表技术论坛 (http://jatools.com/) Powered by Discuz! 6.1.0