我正在使用ZEBRA SDK来打印到PVC卡中,文本打印效果很好,图像也很好,但是当我尝试打印条形码时,它们显示为文本(也许是原始cpcl?),并且我尝试了很多想法:
-重新安装驱动程序(usb)。-通过USB 2.0打印。-使用64位SDK打印。-使用32位SDK打印。-factory默认为打印机设置。-从zebra网站将打印机固件更新为最新版本。
我正在遵循的教程是下一个:
[ ZXP 3的斑马教程] 1
我的问题的图片:
-这是我的代码:
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;
}
-下一步我应该尝试什么?
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.
但是,如果条形码无法在您的应用程序中正常工作。您无需使用该ZBRGraphics,您可以使用市场上允许构建条形码的任何其他C#库,然后可以在打印作业中插入图形,例如GitHub上的示例下方链接。
https://github.com/ScoreBig/barcoderender
MC
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句