Reputation: 869
I'm using the ZEBRA SDK to print into PVC cards, the text prints good, the imgages are good too, but when i try to print bar codes they show up as text (raw cpcl maybe?), and I have tried many thinks:
-reinstalled drivers (usb). -print over usb 2.0. -print with the 64bit SDK. -print with the 32bit SDK. -factory defaulted the printer settings. -updated the printer firmware to lasted version from the zebra website.
the tutorial i'm following is the next one:
picture of my issue:
-here is my code:
if (graphics.DrawBarcode(10, 10, 0, 0, 2, 3, 30, 1, ASCIIEncoding.ASCII.GetBytes(CodigoCliente.Trim().ToCharArray()), out errValue) == 0)
{
msg = "Printing DrawBarcode Error: " + errValue.ToString();
TBLog.Text += Environment.NewLine + msg;
return;
}
-what should I try next?
Upvotes: 1
Views: 1101
Reputation: 26
If you followed the guide provided on the link above "zebra tutorial from ZXP 3]1", it looks that you only downloaded the sample code from GitHub, but you didn't download the dlls files needed to work with the code.
The ZXP3 printer is already discontinued, the replacement printer is the ZC300 card printer
For the ZXP3 printer you would be able to download the dlls and the SDK from the link below. Once you have downloaded the zip file, and extracted it in your pc, you would be able to access a full sample code, the PDF manual, the dlls.
Be aware that there are two dll libraries. One called ZBRPrinter.dll that manages all related to communication interface of the printer. The other library is ZBRGraphics.dll. This second library is the one you need to use for the barcode.
However, if the barcode is not working properly with your application. You don't need to work with that ZBRGraphics, you could use any other C# libraries in the market that allow you to build the barcode, then you can insert the graphic in your print job, like per example the one found on GitHub on the link below.
https://github.com/ScoreBig/barcoderender
MC
Upvotes: 1
Reputation: 1214
When trying to print a barcode on any of the card printers, several issues could prevent a barcode printout. Most of these settings need to be checked or made on the application being used to design the barcode. These settings may include:
For more help, visit this reference link:
ZXP7 CARD PRINTER BARCODES FAIL TO SCAN DUE TO K PANEL MONOCHROME SETTINGS
ISSUE / QUESTION
Example:
Best luck!
Upvotes: 1