GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Skip To Content
  • Packages
  • Upload
  • Statistics
  • Documentation
  • Downloads
  • Blog
  • Sign in

This view

  • Original page
  • New address

GeezerVison is showing www.nuget.org — OpenLabel 1.2.0



OpenLabel 1.2.0

.NET 8.0 This package targets .NET 8.0. The package is compatible with this framework or higher.
  • .NET CLI
  • PMC
  • PackageReference
  • CPM
  • Paket CLI
  • Script & Interactive
  • File-Based Apps
  • Cake
dotnet add package OpenLabel --version 1.2.0
                    
NuGet\Install-Package OpenLabel -Version 1.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OpenLabel" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenLabel" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="OpenLabel" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OpenLabel --version 1.2.0
                    
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OpenLabel, 1.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package [email protected]
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OpenLabel&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=OpenLabel&version=1.2.0
                    
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
  • README
  • Frameworks
  • Dependencies
  • Used By
  • Versions

OpenLabel

ZPL Labeling with Open-Source Flexibility

Project Description

OpenLabel is a C# library designed to simplify working with Zebra Programming Language (ZPL) for label printing. It enables developers to:

  • Print labels to Zebra printers over the network.
  • Scale ZPL code to fit different printer resolutions (DPI).
  • Use a powerful templating system to replace placeholders and handle conditional statements.

This library is ideal for scenarios where ZPL labels are generated dynamically or created using external tools like Labelary. Whether you need to automate label printing, generate custom ZPL templates, or adjust labels for different printers, OpenLabel makes it easy and efficient. It is the foundation for any application to print labels to your label printers!

If you find OpenLabel useful, consider starring the repo to show your support! 🌟

Why OpenLabel?

No more struggling with proprietary software to print your ZPL labels over the network! OpenLabel provides a developer-friendly way to manage label scaling, templating, and printing, making it perfect for:

  • E-commerce & Warehousing – Automate label printing for shipping.
  • Manufacturing – Print product labels dynamically.
  • Retail – Generate barcode labels for inventory.

Table of Contents

  • OpenLabel
  • Project Description
  • Table of Contents
    • Features
    • Installation
    • Usage
      • 1. Print a Label
      • 2. Scale a Label
      • 3. Use Templates
  • License
  • Acknowledgements

Features

  • Print ZPL Labels – Send ZPL commands to a Zebra printer over the network.
  • Scale Labels – Adjust ZPL code to fit different printer resolutions (DPI).
  • Template System – Replace placeholders with actual values and handle conditional statements inside ZPL templates.

Installation

dotnet add package OpenLabel

Usage

1. Print a Label

To print a label, you can send a ZPL string to a Zebra printer over the network:

NetworkPrinter printer = new NetworkPrinter();
await printer.PrintLabelAsync(@"\\server\printer", 5, "^XA^FO50,50^A0N,50,50^FDHello, World!^FS^XZ");

2. Scale a Label

You can scale a ZPL label to fit a specific printer resolution (DPI):

string scaledZPL = LabelScaler.ScaleZPL("^XA^FO50,50^FS^XZ", 203, 300);

3. Use Templates

If you want to dynamically generate labels with placeholders, you can use the template system:

TemplateHandler templateHandler = new TemplateHandler();
string template = "{{IF CONDITION}}^FO50,50^FDText^FS{{ENDIF}}";
Dictionary<string, string> placeholders = new Dictionary<string, string> { { "CONDITION", "1" } };
string renderedLabel = templateHandler.RenderTemplate(template, placeholders);

Get Involved

  • Have ideas or feature requests? Open an issue or start a discussion!
  • Want to contribute? Fork the repo, submit PRs, and help improve OpenLabel!
  • Using OpenLabel? Let us know! Share your use case, report issues, or give feedback.
  • Spread the word! ⭐ Star the repo, share it on social media, and help grow the community!

Join us in making OpenLabel the best open-source ZPL tool!

License

This software is licensed under the MIT license

Acknowledgements

  • The code for the ZPL scaling was in large part possible with the work of:
    • isatufan
    • deexno
Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Include prerelease
Include vulnerable
Include deprecated
Version Downloads Last Updated
1.2.0 1,397 5/16/2026
1.1.2 234 3/18/2026
1.1.0 149 3/18/2026
1.0.2 408 8/1/2025
1.0.1 602 2/26/2025
1.0.0 272 2/26/2025
0.1.1 261 2/25/2025
0.1.0 266 2/25/2025
Downloads
Full stats →
Total 3.6K
Current version 1.4K
Per day average 5
About
  • Last updated 5/16/2026
  • Source repository
  • MIT license
  • Download package  (74.42 KB)
  • Open in NuGet Package Explorer
  • Open in NuGet Trends
  • Report package
Owners
Contact owners →
  • dwarf1er gravatar dwarf1er

ZPL Zebra printing labels

Use the Atom feed to subscribe to new versions of OpenLabel

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.