杰表技术论坛 's Archiver

jueying 发表于 2016-8-29 12:32

杰表免费版在单页面应用中有“access violation”问题,收费版没问题

网站是基础reactjs的单页面应用,每次打开选项卡页面会加载杰表控件。在首次打开打印页面选项卡打印没有问题,但是在关闭这个选项卡时IE会崩溃。debug发现有“access violation writing location”的错误。在试用杰表收费版时不会出现这个问题。系统是win10, 浏览器是IE11 。
下面是我们加载杰表控件的代码:

[code]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);
     },[/code]


附件是debug时发现问题的一些截图,请帮忙看一下原因,谢谢

admin 发表于 2016-8-30 15:50

免费版不支持事件监听

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.