1

第一次使用 ZPL,我在谷歌上搜索我的问题,但到目前为止还没有。

我已经下载了 ZPL II 编程语言 pdf 文件,并尝试打印第一个示例:

^XA
^FO50,50^ADN,36,20^FDTesting^FS
^XZ

我已经用上面的代码创建了 txt 文件,但是当试图“复制”到打印机时没有任何反应。

通过copying to the printer我发现这个:copy printtest.txt usb1copy printtest.txt > usb1

但这不起作用。

我有一台 Zebra 打印机型号 S4M,通过 USB 连接:端口:USB001描述:Virtual printer port for usb

任何帮助将不胜感激。

4

2 回答 2

4

让它打印非常简单...首先共享您的打印机将文件复制到共享打印机路径示例 \Zebra1

我发现了一些我不久前使用过的 VB 代码,希望对您有所帮助

            Dim tempFile As New IO.StreamWriter("Name of file")
            Dim PrnPath as string ="\\MY-PC\Zebra"
            IO.File.Copy(tempFileName, PrnPath, True)
于 2013-05-06T19:09:26.133 回答
0

在 C# 中很简单:

if (File.Exists(inputFilePath))
{
    System.IO.File.Copy(inputFilePath, printerPath);
}
else
{
    //no file. 
}

其中: - inputFilePath - ZPL 文件的路径(不需要特殊扩展名);-printerPath - 共享(!)打印机的路径,例如:\127.0.0.1\zebraGX

于 2013-09-09T13:28:31.990 回答