--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/b22febb8-35a5-4974-8f1e-0873938102a0n%40googlegroups.com.
case 'ZPL':
printData = [
'^XA\n',
'^FO50,50^ADN,36,20^FDPRINTED WITH QZ ' + qzVersion + '\n',
'^FS\n',
'^XZ\n'
Thanks. So you mean something like this? I just copied a random zpl code from here (https://gist.github.com/adrianmi8/84733c369f51069af673564bf8749663) for clarification purpose
function printFile(file) {var config = getUpdatedConfig();//print options not used with this flavorvar printData = [
{ type: 'raw', format: 'command', flavor: 'plain', data: '^XA ^LT120 ^FX Top section ^CFB,25 ^FO50,173^FDFROM:^FS ^FO200,173^FDTest sender^FS ^FO200,228^FD10 MOUNTAIN PKWY^FS ^FO200,283^FDTN, COLLIERVILLE, 38017^FS ^FO50,343^GB706,1,3^FS ^FX Second section with recipient address ^CFB,25 ^FO50,363^FDTO:^FS ^FO200,363^FDJohn Smith^FS ^FO200,423^FDAccounts Payable Dept.^FS ^FO200,473^FD123 Market Street^FS ^FO200,523^FDTX, Dallas, 75270^FS ^FO50,4830^GB706,1,3^FS ^FX Third section with shipment numbers ^CFB,25 ^FO60,593^FDPO#^FS ^FO230,593^FB542,1,0,N,0^FD0001234^FS ^FO60,623^FDDept.^FS ^FO230,653^FB542,1,0,N,0^FD^FS ^FO60,723^FDStore^FS ^FO230,723^FB542,1,0,N,0^FDMAIN BRANCH^FS ^FO60,823^FDDuns#^FS ^FO230,823^FB542,1,0,N,0^FD123123123^FS ^FO50,873^GB706,1,3^FS ^FX Fourth section with package description ^CFB,25 ^FO60,893^FB692,5,4,N,0^FDPRODUCT A x 1, PRODUCT B x 4\&^FS ^FX Fifth section with Box counter ^CFB,25 ^FO60,1000^FB692,1,0,C,0^FDBox 1 of 1^FS ^FO60,1000^FB692,1,0,C,0^FD__________^FS ^FO60,1000^FB692,1,0,C,0^FD__________^FS ^XZ' }];qz.print(config, printData).catch(displayError);}
Thanks. I put it in one line as using slash n was creating some issues for soem reason and I will be getting this code from my rest web service so I guess it doesn't matter. It worked.function printZPLCode() {
var config = getUpdatedConfig();
//print options not used with this flavor
var printData = [
{
type: 'raw', format: 'command', flavor: 'plain',
data: '^XA^FO50,50^ADN,36,20^FDPRINTED WITH QZ'+qzVersion+'^FS^XZ'
}
];
qz.print(config, printData).catch(displayError);
}
I am wondering if it should have worked from my remote computer as well?
No problem. One question - is there any difference when it comes to the print command when I'm using ZPL code raw printing vs Pixel Code printing. I mean, whenever I've used pixel printing scenario, I usually RDP into my remote work station and then used the printer on my physical location to print labels that is hooked up with my computer.In case of ZPL code, I have only seen this working from my physical computer ( a scenario where the Zebra printer is hooked up directly to my computer). I am wondering if it should have worked from my remote computer as well?
Are you saying that it didn't?
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/CANZn-jwgQnKyhcvBAL0ru67We_m7qRHxyE0dpsAyAeyD696Zyw%40mail.gmail.com.