zplCore.comzplCore.com

ZebraSendFileToPrinterConnection

public sealed class ZebraSendFileToPrinterConnection : IPrinterConnection, IAsyncDisposable

Legacy Zebra cloud printing: POST https://api.zebra.com/v2/devices/printers/send (SendFileToPrinter, Zebra Data Services) with the headers apikey and tenant, the printer serial number(s) sn and one file zpl_file (multipart/form-data, at most 10 MB). One-way: no job id, no status. Zebra operates it until December 2027; new integrations use NucleusPrinterConnection (Zebra Cloud Print API). Write-only.

Constructors

SignatureDescription
# ZebraSendFileToPrinterConnection(string apiKey, string tenant, params string[] serialNumbers)

Properties

PropertyTypeDescription
Endpoint { get; set; }Uri
FileName { get; set; }stringFile name of the upload (some printers treat .zpl as a print job, other extensions as files to store).
SerialNumbers { get; }IReadOnlyList<string>
Tenant { get; }string
Timeout { get; set; }TimeSpan

Fields & Constants

FieldTypeDescription
static readonly DefaultEndpointUri

Methods

Method SignatureReturnsDescription
# DisposeAsync()ValueTask
# QueryAsync(string command, TimeSpan timeout, CancellationToken ct = default)Task<string>
# SendAsync(byte[] data, CancellationToken ct = default)Task
# ToString()string