zplCore.comzplCore.com

VirtualLabelEventArgs

public sealed class VirtualLabelEventArgs : EventArgs

A label rendered by ZplVirtualPrinter.

Constructors

SignatureDescription
# VirtualLabelEventArgs(int connectionId, EndPoint remote, int index, byte[] data, string filePath)A label rendered by ZplVirtualPrinter.

Properties

PropertyTypeDescription
ConnectionId { get; }intSequential id of the TCP connection (one renderer/printer memory per connection).
Cut { get; init; }ZplLabelCutCut decision of the label (^MM / ^PQ rules, see ZplCutPlan); null for EPL or container formats.
Data { get; }byte[]Encoded image (PNG by default, see ZplVirtualPrinter.RenderSettings).
FilePath { get; }stringFile written to ZplVirtualPrinter.OutputDirectory, if any.
Index { get; }intRunning label number across the printer's lifetime.
RemoteEndPoint { get; }EndPoint
Rfid { get; init; }RfidLabelResultResult of the tag simulation for this label (ZplVirtualPrinter.RfidSimulator), null when off or not an RFID label.
Voided { get; init; }boolRFID encoding failed (ZplFaultKind.RfidVoid or the tag simulation): the label printed with VOID across it and is retried.