jZebra - 使用原始命令开始 [英] jZebra - Getting started with raw commands

查看:107
本文介绍了jZebra - 使用原始命令开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了将带有条形码的网页转换为单击标签打印的任务。我已经开始使用jZebra,但我不知道从哪里开始就了解如何为打印机编写命令。



我已经Google'基本上,我试图理解这段代码:



<$>

<$> p $ p> applet.append( ^ XA ^ CF,0,0,0 ^ PR12 ^ MD30 ^ PW800 ^ PON ^ CI13\\\
);
//绘制一条线。 applet.append( ^ FO0,147 ^ GB800,4,4 ^ FS\\\
);
applet.append(^ FO0,401 ^ GB800,4,4 ^ FS \\\
);
applet.append(^ FO0,736 ^ GB800,4,4 ^ FS \\\
);
applet.append(^ FO35,92 ^ AdN,0,0 ^ FWN ^ FH ^ FD ^ FS \ n);
applet.append(^ FO615,156 ^ AdN,0,0 ^ FWN ^ FH ^ FD(123)456-7890 ^ FS \ n);

有没有人有链接或有关这些字符/命令如^ FO0401 ^ GB800 ,4,4 ^ FS是指或做什么?

解决方案

在谷歌9,000小时后:


许多卡片打印机(如Zebra或Eltron制造的打印机)
需要发送特殊的RAW打印机命令才能执行
某些功能(例如作为磁条编码或条形码
打印)。这些RAW命令通常以
专有语法的文本形式发送。此RAW语法由打印机制造商指定(通常以开发人员手册的形式)。语法
在打印机制造商和打印机
型号之间会有很大差异。

强调是我的。可能需要google开发者手册。



来源: http://code.google.com/p/jzebra/wiki/OldSummaryDoNotUse


I've been given the task of converting a web page with a barcode to a one click label print. I've got jZebra up and running, but I have no idea where to get started as far as understanding how to write commands for a printer.

I've Google'd just about everything I can think of regarding this.

Basically, I am trying to understand this code:

applet.append("^XA^CF,0,0,0^PR12^MD30^PW800^PON^CI13\n");
// Draws a line. applet.append("^FO0,147^GB800,4,4^FS\n");
applet.append("^FO0,401^GB800,4,4^FS\n");
applet.append("^FO0,736^GB800,4,4^FS\n");
applet.append("^FO35,92^AdN,0,0^FWN^FH^FD^FS\n");
applet.append("^FO615,156^AdN,0,0^FWN^FH^FD(123) 456-7890^FS\n");

Does anyone have links to or information regarding what these characters / commands like "^FO0,401^GB800,4,4^FS" mean or do?

解决方案

After 9,000 hours in google:

Many card printers (such as Zebra or Eltron manufactured printers) need special RAW printer commands sent to them in order to perform certain functions (such as magnetic strip encoding or barcode printing). These RAW commands are usually sent as text in a proprietary syntax. This RAW syntax is specified by the printer manufacturer (usually in the form of a developer's manual). Syntax will vary drastically between printer manufacturers and printer models.

Emphasis is mine. Probably want to google for a developer's manual.

Source: http://code.google.com/p/jzebra/wiki/OldSummaryDoNotUse

这篇关于jZebra - 使用原始命令开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆