ESCPOS 1.1.0
See the version list below for details.
dotnet add package ESCPOS --version 1.1.0
NuGet\Install-Package ESCPOS -Version 1.1.0
<PackageReference Include="ESCPOS" Version="1.1.0" />
paket add ESCPOS --version 1.1.0
#r "nuget: ESCPOS, 1.1.0"
// Install ESCPOS as a Cake Addin #addin nuget:?package=ESCPOS&version=1.1.0 // Install ESCPOS as a Cake Tool #tool nuget:?package=ESCPOS&version=1.1.0
ESCPOS
A ESC/POS Printer Commands Helper
Installing via the NuGet Package
PM> Install-Package ESCPOS
Usage
All command methods will return a byte array that you should concatenate with the bytes of your data, and then send it all to your printer.
The Print
extension method will send a byte array to the informed printer address, which can be something like COM3
, LPT1
, \\127.0.0.1\printer
, etc or even a path to a text file like ./print.txt
.
There is also an Add
and ToBytes
extension methods located in the namespace ESCPOS.Utils
.
The first one for byte arrays, you can use it to concatenate 2 or more byte arrays just like this:
byte[] result = array1.Add(array2, array3, ..., arrayN);
The second for strings, you can use it to convert a UTF-8 string to a byte array
byte[] result = "Some string".ToBytes();
Examples
All examples will assume the below using statements
using static ESCPOS.Commands;
using ESCPOS;
using ESCPOS.Utils;
QRCode
byte[] qrCodeCommand = PrintQRCode("Some data");
qrCodeCommand.Print("COM2");
Barcode
byte[] barCodeCommand = PrintBarCode(BarCodeType.EAN13, "9780201379624");
barCodeCommand.Print("LPT1");
Considerations
This library will only accept UTF8 Encoding for Barcodes and QRCodes data.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ESCPOS:
Package | Downloads |
---|---|
DemoPOS
Lightweight and easy to use fluent-style usb thermal printer wrapper based on ESCPOS and RawPrint |
GitHub repositories
This package is not used by any popular GitHub repositories.