2013-07-27 82 views
1

我已经能够在我的php项目中创建条形码,现在我想打印我的条形码,所以我使用java脚本,但是当它来打印零件图像时不显示。链接到我的条码图像,因为这打印汽车genarated条形码图片

http://localhost/Labortory_Management_System/assets/barcode/test_1D.php?text=3921214754 

任何一个可以帮我打印的东西图像

谢谢

PS

我使用Java脚本打印的图像

<script type="text/javascript"> 

    function PrintElem(elem) 
    { 
     Popup($(elem).html()); 
    } 

    function Popup(data) 
    { 
     var mywindow = window.open('', 'my div', 'height=400,width=600'); 
     mywindow.document.write('<html><head><title>my div</title>'); 
     /*optional stylesheet*/ //mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />'); 
     mywindow.document.write('</head><body >'); 
     mywindow.document.write(data); 
     mywindow.document.write('</body></html>'); 

     mywindow.print(); 
     mywindow.close(); 

     return true; 
    } 

</script> 

请求帮助

回答

0

insted使用默认打印选项我使用api帮助打印结果barcode