rkone / sharpzebra

A .net library that simplifies printing to Zebra printers in their native EPL2/ZPL languages without needing to know EPL2 or ZPL.
MIT License
89 stars 34 forks source link

Mobile support (.NET MAUI) #26

Open Syed-RI opened 1 month ago

Syed-RI commented 1 month ago

Hi, as I await the test devices, I was wondering does the library support printing on mobile devices? i.e. Zebra printer connected to a mobile device via bluetooth.

The flow Im thinking is something in the line of:

Also, any example how to print barcodes using the library?

rkone commented 1 month ago

Currently, the library only supports printing via network, windows printer or USB, with the last 2 options requiring windows. I have printed from MAUI using network, this works fine. I don't know anything about bluetooth printing though.

Syed-RI commented 1 month ago

@rkone thank you. Any examples of printing barcodes?

rkone commented 1 month ago

Hi @Syed-RI Check the Wiki for general usage. The command to generate ZPL for a CODE39 barcode would be: ZPLCommands.BarcodeWrite(10, 10, 50, ElementDrawRotation.NO_ROTATION, new() { Type = BarcodeType.CODE39_STD_EXT }, false, "Hello, World!")