Closed GoogleCodeExporter closed 9 years ago
<div id='jqBarCode' style='display:block;'></div>
<input type=button onClick="printZebra()" value="Print">
<applet name="jzebra" code="jzebra.PrintApplet.class" archive="./jzebra/jzebra.jar" width="100" height="100">
<param name="printer" value="\\hicfps001\HIS - A3FL -SCOTIA"> </applet>
<script>
function printZebra() {
$("#jqBarCode").barcode("v", 'code128',{barWidth:2, barHeight:15});
var t = document.getElementById("jqBarCode").innerHTML;
// style="BACKGROUND-COLOR: #ffffff; WIDTH: 2px; FLOAT: left; HEIGHT: 15px; FONT-SIZE: 0px"
// document.jzebra.appendHTML('<html><div style="bgcolor=Red">HI!!!!!!!!!!!!!</div>jZebra HTML Printing Demo</html>');
// ZPLII \\hicfps001\HIS - A3FL -SCOTIA
// document.jzebra.append("^XA^FO50,50^ADN,36,20^FDPRINTED USING JZEBRA^FS^XZ");
// document.jzebra.printHTML();
// Printing using extra spaces, fixed font, dashes
// Fix whitespace and special character behavior
document.jzebra.appendHTML('<html>'+t+'</html>');
document.jzebra.printHTML();
} </script>
printed nothing
Original comment by vakula.b...@gmail.com
on 23 Oct 2012 at 12:57
You cannot mix ZPL and HTML. Please choose one or the other. Closing and
marking as invalid. Please reopen if this was closed in error.
If you need tech support with this plugin, email jZebra-users@googlegroups.com
Original comment by tres.fin...@gmail.com
on 23 Oct 2012 at 3:09
Original issue reported on code.google.com by
scottpo...@gmail.com
on 4 Oct 2012 at 11:58