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.
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); } }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,028
André Arnaud de Cal... 878 Super User 2025 Season 2
Sohaib Cheema 579 User Group Leader