ThermalLabel SDK for .NET Maintenance Update – Version 16.0.26.1121: Batch cutting now works with counters and data sources

ThermalLabel SDK for .NET version 16.0.26.1121 ships with the following main fixes and improvements:

Batch cutting now works with counters and data sources

Until now, BatchCut only worked when every label in the job was the same. If the label had a counter or was bound to a data source, each label was sent to the printer on its own, and the printer cut after every label.

The SDK now counts labels across the whole job. It cuts after every N labels and after the last one, even when every label is different. This works for ZPL, EPL and Fingerprint/Direct Protocol printers.

var tl = new ThermalLabel(UnitType.Mm, 57, 32);
tl.Items.Add(new TextItem(2, 2, 53, 8, "") { DataField = "Name" });
tl.DataSource = products;   // each row prints a different label
tl.CutAfterPrinting = true;
tl.BatchCut = 2;            // cut after every 2 labels

using (var pj = new PrintJob { ProgrammingLanguage = ProgrammingLanguage.ZPL, ThermalLabel = tl })
{
    var commands = pj.GetNativePrinterCommands();
}

With 4 rows, this prints two strips of 2 labels each.

How to update

  • Visual Studio: right-click your project → Manage NuGet Packages → Updates, select the SDK package and click Update. Or from the command line: dotnet add package <PackageId>. Then do a Clean + Rebuild.
  • VS Code: open the integrated terminal and run dotnet add package <PackageId>, then rebuild. With the C# Dev Kit extension you can also use the Command Palette → NuGet: Update NuGet Package.

More information

ThermalLabel SDK for .NET 16.0.26.1121
Product page & Quick Start · Release notes v16.0.26.1121

 Subscribe via RSS

← All posts