zplCore.comzplCore.com

PrinterSpec

public sealed class PrinterSpec : IZplPrinterFit

Data-sheet printer limits: resolution, maximum print width and label length. Checks that the label was designed for the printer's resolution and that no ink lies outside the printable width.

Constructors

SignatureDescription
# PrinterSpec(string name, int dpi, double printWidthMm, double? maxLabelLengthMm = default)Creates a spec. name: Model name for messages. · dpi: Printhead resolution. · printWidthMm: Maximum print width (printhead width). · maxLabelLengthMm: Maximum label length, null when not limited.

Properties

PropertyTypeDescription
Dpi { get; }intPrinthead resolution.
MaxLabelLengthMm { get; }double?Maximum label length in mm (null: not limited).
Name { get; }string
PrintWidthMm { get; }doubleMaximum print width in mm.

Fields & Constants

FieldTypeDescription
const LabelLengthRule = "ZT1203"stringBuilt-in rule ids.
const PrintWidthRule = "ZT1202"stringBuilt-in rule ids.
const ResolutionRule = "ZT1201"stringBuilt-in rule ids.

Methods

Method SignatureReturnsDescription
# Check(PrinterFitContext context)IEnumerable<PrinterFitIssue>
# ToString()string