class PrintZPLLabel
{
public static void main(Args _args)
{
// ZPL code for the label
str zplCode = '^XA^FO50,50^ADN,36,20^FDHello, World!^FS^XZ';// Printer name (as registered in Network printers)
str printerName = 'YourPrinterName';// Call the method to print the ZPL label
WhsDocumentRouting::printZPLLabelToPrinter(printerName, zplCode);
}
}
This one is super easy, F&O has a really great method for this that I have used a couple of times.
Look at WhsDocumentRouting, and specifically the static method printZPLLabelToPrinter.
Let me know if it works out for you.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,532 Super User 2024 Season 2
Martin Dráb 228,501 Most Valuable Professional
nmaenpaa 101,148