### Add OpenLabel Package Source: https://github.com/dwarf1er/openlabel/blob/master/README.md Install the OpenLabel NuGet package using the .NET CLI. ```bash dotnet add package OpenLabel ``` -------------------------------- ### Render ZPL Template with Placeholders Source: https://github.com/dwarf1er/openlabel/blob/master/README.md Dynamically generate labels with placeholders and conditional statements using the TemplateHandler. Provide the template string and a dictionary of placeholder values. ```csharp TemplateHandler templateHandler = new TemplateHandler(); string template = "{{IF CONDITION}}^FO50,50^FDText^FS{{ENDIF}}"; Dictionary placeholders = new Dictionary { { "CONDITION", "1" } }; string renderedLabel = templateHandler.RenderTemplate(template, placeholders); ``` -------------------------------- ### Print ZPL Label Over Network Source: https://github.com/dwarf1er/openlabel/blob/master/README.md Send ZPL commands to a Zebra printer over the network using the NetworkPrinter class. Ensure the printer path is correctly specified. ```csharp NetworkPrinter printer = new NetworkPrinter(); await printer.PrintLabelAsync(@"\\server\printer", 5, "^XA^FO50,50^A0N,50,50^FDHello, World!^FS^XZ"); ``` -------------------------------- ### Scale ZPL Label to Printer DPI Source: https://github.com/dwarf1er/openlabel/blob/master/README.md Adjust ZPL code to fit different printer resolutions (DPI) using the LabelScaler class. Provide the original ZPL, source DPI, and target DPI. ```csharp string scaledZPL = LabelScaler.ScaleZPL("^XA^FO50,50^FS^XZ", 203, 300); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.