Zebra label printer test page12/20/2023 ![]() Always communicate to the printer on a thread other than the UI.This includes failure to print without notifying the user of cause. The app should not crash or freeze when attempting to print. Under ‘Actions’, select ‘Load Factory Defaults’.There are several methods for defaulting Zebra printers, but a common one is to use the Setup Utility software.Test your app thoroughly to the best practices on the following pages. Get a new printer or default a printer to factory specifications.Verify the best practices on the following sections are being met.String linkosVersion = SGD.GET( "appl.link_os_version", statusConnection) (optional- if required) Verify printer firmware versionĬode String firmware = SGD.GET( "appl.name", statusConnection).(optional- if required) Set up Special features (ZBI, virtual devices, etc.).See the section on Mirror for information on setting printer management through FTP on the printer. Note: See the ZPL Programming Guide on Weblink commands for information on setting up Cloud Connect, Connectors, and Profile Manager in the printer. (optional- if required) Set up Remote Management settings (connectors, mirror, profile manager).To set them in the printer, you can use the preceding code. You may want to adjust your printout based on these settings. It is recommended that you give your users an interface to adjust these settings for their printers in your app. Note: For a full list of SGD (Set-Get-Do) settings, see the ZPL Programming Guide. SGD.SET( "ezpl.print_width", "812", statusConnection) set the label width to 4 inches (on a 203 dpi printer) SGD.SET( "media.speed", "6", statusConnection) set the print speed to 6 inches per second SGD.SET( "print.tone", darkness, statusConnection) Set up label & print settings (print speed, darkness, label width, length, etc.).Note: See code sample in Page Description Language section. Set up correct Zebra Print Page Description Language (ZPL, CPCL, line_print, PDF, etc.).Note: Examples of different connection types can be found in the API Documentation. Set up correct connectivity (TCP, Cloud Connect, BT, BTLE, USB, etc).The default settings may not meet the needs of your application. Not all printers have the same default behaviors. It should work with that printer if the printer is brand new out of the box. Your app should work with the Zebra Printer you specify. If you have implementation questions, ask at the Zebra Developer Portal. More examples of implementing Best Practices can be found on the Zebra Github repo. The sample code herein is meant to be an example and may need to adjust to fit your use case. You can implement these best practices in nearly any programming language for almost any OS, with any Zebra printer, any print page description language, with or without the SDK. ![]() The code samples in this document are in Java for Android, assuming the use of the Link-OS Multiplatform SDK and working with ZPL print language. Either section may have code snippets or other notes to elaborate on how to implement each portion.Īnything with the validation logo must be implemented if possible for Zebra Validated Program. This is followed by a ‘How to Do It’ section for developers and a ‘How to Test It’ section for testers. Zebra Partners who are looking to have their software validated by Zebra.Įach section has a name and description of the best practice. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |