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
91 stars 34 forks source link

Print should return success or failure. #5

Closed prasadghole closed 6 years ago

prasadghole commented 6 years ago

For spool printer we are ignoring success status obtained from SengBytesToPrinter function.

rkone commented 6 years ago

Changing the interface definition for spool printer means we'd also have to return a value for NetworkPrinter which has no idea if the network data gets to the printer.

I could change Print to return a bool? - this is somewhat more useful I guess.. I will think about it.

prasadghole commented 6 years ago

Yes. I would like if we print can return bool. But as this is base interface for all the modules will impact all the higher level implementation of Print Interface.

rkone commented 6 years ago

The latest version now returns bool? NetworkPrinters always return null while USB and Spool printers will return true/false.