Hi,
I'm trying to add label printing functionality to apex application and found the following applet that allow you to print directly to the end-user's label printer.
The provided sample.html file work fine so now I'm trying integrate it in my apex app but can't seems to get it working.
The sample code deploys the applet via jnlp file, so I copied the necessary file onto my server under /i/ directory and change paths in the html - but the deployQZ javascript function seems to fail.
function deployQZ()
{
var attributes = {id: "qz",code:'qz.PrintApplet.class', archive:'/i/zz_qz-print/qz-print.jar', width:1, height:1};
var parameters = {jnlp_href: '/i/zz_qz-print/qz-print_jnlp.jnlp', cache_option:'plugin', disable_logging:'false', initial_focus:'false'};
if (deployJava.versionCheck("1.7+") == true)
{
}
else if (deployJava.versionCheck("1.6+") == true)
{
alert("runApplet - 1.6+");
attributes['archive'] = '/i/zz_qz-print/jre6/qz-print.jar';
parameters['jnlp_href'] = '/i/zz_qz-print/jre6/qz-print_jnlp.jnlp';
}
deployJava.runApplet(attributes, parameters, '1.5');
}
If I use the following code in my HTML region the browser hangs.
<applet id="QZ"
code="qz.PrintApplet.class"
archive="/i/zz_q-zprint/jre6/qz-print.jar"
width="350"
height="350">
Java applet qz-print
</applet>
I was wondering if anyone has used qz-print (jzebra) in apex or can point out what I'm doing working?
Any help would be most appreciated.
Thanks
Anthony