Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Printer Forums
Printer Discussion
Print Labels with Zebra Printers with C#
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="idprintcare, post: 233783, member: 29822"] To achieve a similar workflow with the [B]Zebra ZD421[/B] as you have with the Brother QL-800, you’ll need to transition from working with proprietary label design files (like the .lbx file) to Zebra’s own label design and printing solutions. [LIST=1] [*][B]ZebraDesigner Software[/B]: First, use Zebra's [B]ZebraDesigner[/B] software to create and design your label templates. ZebraDesigner allows you to design labels with text, barcodes, and images. Once you have the design, you can save the template as a [B]ZPL (Zebra Programming Language)[/B] file, which is used for printing on Zebra printers like the ZD421. [*][B]Zebra SDK[/B]: Zebra provides an SDK for C# (Zebra .NET SDK) that allows you to communicate with the printer directly. The SDK can send ZPL commands to the printer, including the label template and data that you want to populate. [*][B]Workflow[/B]: [LIST] [*]Design your label in ZebraDesigner. [*]Save the template as a [B]ZPL[/B] file. [*]In your C# code, you can load the [B]ZPL[/B] template file and send the necessary data to replace placeholders in the ZPL script. This can be done using [B]Zebra .NET SDK[/B] or by directly sending the ZPL commands to the printer. [/LIST] [*][B]Zebra Printer Communication[/B]: You can use [B]Zebra's SDK[/B] or [B]Raw Printing[/B] methods to send the ZPL commands. The [B]Zebra .NET SDK[/B] offers various APIs to interact with the printer and manage the print queue. [/LIST] For example, the code might look something like this: using Zebra.Sdk.Comm; using Zebra.Sdk.Printer; PrinterConnection connection = new TcpConnection("printer_ip_address", TcpConnection.DEFAULT_ZPL_TCP_PORT); connection.Open(); string zplData = File.ReadAllText("path_to_your_zpl_template.zpl"); string filledZplData = zplData.Replace("{{DataPlaceholder}}", "YourDynamicData"); connection.Write(Encoding.UTF8.GetBytes(filledZplData)); connection.Close(); This will send your customized ZPL command to the printer for it to print the label. [/QUOTE]
Verification
Post reply
Forums
Printer Forums
Printer Discussion
Print Labels with Zebra Printers with C#
Top