38 types
ZplCore.Printing
Printer transports (TCP 9100, USB, Serial, Windows Spooler, CUPS), printer discovery, host status (~HS/~HI), and the stateful/chaos virtual printer (ZplVirtualPrinter).
| Type | Kind | Summary |
|---|---|---|
| CommunicationType | enum | How the printer is attached. |
| CupsPrinterConnection | class | Sends raw data to a CUPS queue on macOS/Linux via lp -d <queue> -o raw. Write-only. |
| DiscoveredPrinter | record | A locally attached printer found by PrinterDiscovery. |
| DryRunPrinterConnection | class | Dry-run connection (PrinterSettings.EnablePrinting = false): records everything that would be sent, prints nothing. Queries ret… |
| IPrinterConnection | interface | A bidirectional (where supported) raw connection to a label printer. |
| JobOrientation | enum | Job orientation: rotates all fields without explicit orientation (^FW) or the whole format (^PO). |
| MediaTracking | enum | Media sensing / tracking (^MN). |
| MediaType | enum | Media type (^MT). |
| ParallelPrinterConnection | class | Parallel (Centronics/IEEE 1284) port. Writes to the port device: "LPT1".."LPT9" on Windows (or a spooler pr… |
| PrintMode | enum | Post-print action (^MM). |
| PrinterConnectionExtensions | class | Convenience extensions for IPrinterConnection. |
| PrinterConnectionFactory | class | Creates the IPrinterConnection for a PrinterSettings. |
| PrinterDiscovery | class | Best-effort enumeration of USB-attached printers (no extra dependencies, no raw USB access). |
| PrinterSettings | class | Connection settings; only the members relevant to PrinterSettings.CommunicationType are used. |
| RawFilePrinterConnection | class | Writes to a device path or file: /dev/usb/lp0, LPT1, \\.\USB001, a share, or a plain file. Write-only. |
| SerialPrinterConnection | class | RS-232 / virtual COM port connection (System.IO.Ports). Opens the port per call. |
| StreamPrinterConnection | class | Writes to (and reads from) any caller-owned stream. |
| TcpPrinterConnection | class | Raw TCP (port 9100) connection. Opens one socket per call, like ZplPrinterClient. |
| VirtualCutEventArgs | class | The cutter of ZplVirtualPrinter cut after a label. |
| VirtualJobEventArgs | class | Raw data received by ZplVirtualPrinter (one processed segment). |
| VirtualLabelEventArgs | class | A label rendered by ZplVirtualPrinter. |
| WindowsSpoolerPrinterConnection | class | Raw printing through the Windows spooler (winspool.drv, datatype RAW) to an installed printer/driver. Write-only. |
| ZplChaosScript | class | A chaos script: printer options and faults as JSON, e.g. for zplcore serve --chaos script.json. |
| ZplExtendedStatus | record | Parsed ~HQES (host query, extended status) response. |
| ZplFaultEventArgs | class | Raised when a fault becomes active or is cleared. |
| ZplFaultKind | enum | Printer conditions and communication faults simulated by ZplVirtualPrinter (ZplVirtualPrinter.Faults). |
| ZplFaultRule | record | A scheduled fault: what (ZplFaultRule.Kind), when (ZplFaultRule.Trigger) and how long. |
| ZplFaultTrigger | record | Trigger of a ZplFaultRule; counts start when the rule is scheduled. |
| ZplFaultTriggerKind | enum | When a scheduled fault fires. |
| ZplHostQueryExtensions | class | ~HQ host query extensions. |
| ZplJobSettings | class | Printer job settings injected at the start of each label format: print mode, media tracking, media type, orientation, darkness … |
| ZplPrinterClient | class | Sends ZPL to a network printer (raw TCP, port 9100) or any stream (USB/serial adapters). |
| ZplPrinterErrors | enum | Error flags of the ~HQES response (nibbles 8-1), ZPL II Programming Guide P1134473-11EN, ~HQ Table 8 "Error Flags". V… |
| ZplPrinterFaults | class | Scriptable faults and printer conditions of a ZplVirtualPrinter: set conditions now (ZplPrinterFaults.Raise), schedule them det… |
| ZplPrinterStatus | record | Parsed ~HS host status response (ZPL II Programming Guide, "~HS Host Status Return"): String 1 aaa,b,c,dddd,eee,f,g,h… |
| ZplPrinterWarnings | enum | Warning flags of the ~HQES response (nibbles 8-1), ~HQ Table 9 "Warning Flags" (sensor flags: KR403). |
| ZplVirtualPrinter | class | Virtual network label printer: a TCP listener (raw port 9100 protocol) that accepts ZPL or EPL jobs, renders them with ZplRende… |
| ZplVirtualPrinterStatus | record | Snapshot of the simulated printer (ZplVirtualPrinter.GetStatus). |

