lukevp / ESC-POS-.NET

Efficient, Easy to Use Thermal Printing & POS (Windows/Linux/OSX, WiFi/BT/USB/Ethernet)
MIT License
526 stars 175 forks source link

BarCode 93 not printing #100

Closed pedrollanes closed 3 years ago

pedrollanes commented 3 years ago

Two issues: In barcode 93 I'm trying to print this code $EC0MNRN1V7G$. If I put in this value I recieve a exception that Code39 requires at start and end, but I'm trying to use code 93. Second issue: I put for avoiding this error and I have not any error but printer doesn't print the barcode.

Thanks

igorocampos commented 3 years ago

About the error message, it is clearly a misspelling where the correct message should say Code93 instead of Code39, you can check that in the source code that originated the message: image

About the printer not printing anything, you will have to check if it is compatible with Code93 type of barcode. Which printer and model are you using? And is there any specific reason why use Code39, instead of Code128 for example?

pedrollanes commented 3 years ago

At last the problem is that the width exceed the paper width. I have used code39 and work fine. Thanks

lukevp commented 3 years ago

Thanks @pedrollanes for calling out the typo in the exception, this has been fixed in the prerelease version of the library and this issue is closed. I'm glad you got the barcode to print correctly!