Downloads - Motorola Solutions LaunchPad Developer Community
Downloads - Motorola Solutions LaunchPad Developer Community
Downloads - Motorola Solutions LaunchPad Developer Community
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
...CODE SNIPPET<br />
// Prints label to the printer<br />
function btn0_Click() {<br />
//Constructs Printer ID<br />
make_strPID();<br />
//Opens connection with the printer<br />
apd.PSExternal(261, strPID );<br />
//Sends ZPL data to the printer<br />
apd.PSExternal(266, "^XA" + "^MNN" + "^LL400" + "^FO200,100" + "^A0N,50,50" + "^FDHello World" + "^FS" + "^XZ");<br />
//Closes connection with the printer<br />
apd.PSExternal(271, ""); }<br />
//Constructs Printer ID<br />
function make_strPID() {<br />
strPID = commMethod + "|" + document.frmPAdd.txtPAdd.value; }<br />
20<br />
Zebra Confidential