sharpzebra icon indicating copy to clipboard operation
sharpzebra copied to clipboard

Mobile support (.NET MAUI)

Open Syed-RI opened this issue 1 year ago • 3 comments

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:

  • Cross platform mobile application built using .NET MAUI (targeting .NET 8)
  • Device connects to a portable Zebra printer via bluetooth
  • Use sharpzebra to configure a template and send print command (somehow?)

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

Syed-RI avatar Jul 16 '24 10:07 Syed-RI

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.

rkone avatar Jul 16 '24 12:07 rkone

@rkone thank you. Any examples of printing barcodes?

Syed-RI avatar Jul 16 '24 13:07 Syed-RI

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!")

rkone avatar Jul 16 '24 15:07 rkone