Announcements
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.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156