即mvc中的8个打印问题 [英] ie 8 print issue in mvc

查看:97
本文介绍了即mvc中的8个打印问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

调用图像src中的控制器以获取打印功能,但是当控制器发回响应时,图像src不会被锁定。



< label> ; 1 / 2/2015< / label>

call a controller in image src for the print function but the image src is not loded when the controller sends back response.

"

<label>1/2/2015</label>

< label> Acc staff< / label>

<label>Acc staff</label>

< label>对于ct< / label>

<label>prx</label>

< label>< img,prx< / label>

<label>certicate for ct</label>​

< label> certicate src ='/ local / api / file / Downloadfile?rG = 547e49dc-d4c8-4b78-9255-1ecfd4e422d7'alt ='下载'/>< / label>< label>< img src ='/ local / api / file / Downloadfile?rG = 547e49dc-d4c8-4b78-9255-1ecfd4e422d7'alt ='下载'/>< / label>

<label><img src='/local/api/file/Downloadfile?rG=547e49dc-d4c8-4b78-9255-1ecfd4e422d7' alt='Download' /></label><label><img src='/local/api/file/Downloadfile?rG=547e49dc-d4c8-4b78-9255-1ecfd4e422d7' alt='Download' /></label>

var $popupDiv = $("<div id='printCertificateDiv' style='padding-top: 10px;' > " +
                              "<div class='cmc-form-FieldGroup bluebox-colspan-1 cmc-roundedCorner'>" +
                              content +
                              "</div>").appendTo(document.body);

            // this code is added to show print preview in Ie-8
            if (cmc.functions.browser.IsIE()) {

                var divToPrint = document.getElementById('printCertificateDiv');
                newWin = window.open();
                newWin.document.write(divToPrint.innerHTML);
                newWin.location.reload();
                newWin.focus();
                newWin.print();
                newWin.close();
                $("#printCertificateDiv").remove();



是我的jquery代码

请帮助


is my jquery code
please help

推荐答案

popupDiv =
popupDiv =


< div id =' printCertificateDiv' style =' padding-top:10px;' < span class =code-keyword>> +
< div class =' cmc-form-FieldGroup bluebox-colspan-1 c mc-roundedCorner' > +
content +
< / div > )。appendTo(document.body);

//此代码被添加到Ie-8
中显示打印预览if(cmc.functions.browser.IsIE()){

var divToPrint =的document.getElementById( 'printCertificateDiv');
newWin = window.open();
newWin.document.write(divToPrint.innerHTML);
newWin.location.reload();
newWin.focus();
newWin.print();
newWin.close();
("<div id='printCertificateDiv' style='padding-top: 10px;' > " + "<div class='cmc-form-FieldGroup bluebox-colspan-1 cmc-roundedCorner'>" + content + "</div>").appendTo(document.body); // this code is added to show print preview in Ie-8 if (cmc.functions.browser.IsIE()) { var divToPrint = document.getElementById('printCertificateDiv'); newWin = window.open(); newWin.document.write(divToPrint.innerHTML); newWin.location.reload(); newWin.focus(); newWin.print(); newWin.close();


(#printCertificateDiv)。remove();
("#printCertificateDiv").remove();



是我的jquery代码

请帮忙


is my jquery code
please help


这篇关于即mvc中的8个打印问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆