您的位置->>条码打印机->>在线支持                                  

编号:3990 留言者名称:姚先生 标题:用WINPPLA.DLL怎样连续打印多个条码?
例如,增量为1,连续打10张,请给出代码,谢谢。
地区:其它    留言时间: 2004-7-21 15:28:36
专家解答:

    A_Prn_Text()
    ===============================================================================
        PURPOSE  Create a "text" object.

         SYNTAX  int A_Prn_Text(int x, int y, int ori, int font, int type, int hor_factor,
                                int ver_factor, char mode, int numeric, LPCTSTR data);

      PARAMETER  int     x;               X coordinate.
                 int     y;               Y coordinate.
                 int     ori;             Orientation or print direction.
                                          Value: 1,2,3,4
                 int     font;            Font type as follows:
                                          Note:Refer to the font tables in User's
                                                Manual.
                 int     type;            As follows:
                               +--------------+-----+---------------------------+
                               |font          |type |Font Type                  |
                               +--------------+-----+---------------------------+
                               |0,1,2,3,4,5,6,|0    |font 0~font 8 respectively.|
                               |7,8           |     |                           |
                               +--------------+-----+---------------------------+
                               |9             |0~7  |ASD smooth fonts.          |
                               |              |     |0:4points,  1:6points,     |
                               |              |     |2:8points,  3:10points,    |
                               |              |     |4:12points, 5:14points,    |
                               |              |     |6:18points.                |
                               +--------------+-----+---------------------------+
                               |11            |0~7  |Courier fonts,(0 represents|
                               |              |     |symbol set)                |
                               |              |     |0:Roman-8,  1:ECMA-94,     |
                               |              |     |2:PC set,   3:PC set A,    |
                               |              |     |4:PC set B, 5:Legal,       |
                               |              |     |6:Greek,    7:Russian.     |
                               +--------------+-----+---------------------------+
                               |12            |0    |Font selection form font   |
                               |              |     |board.                     |
                               +--------------+-----+---------------------------+
                 int     hor_factor;      Horizontal scale factor.  Value:1 ~ 24
                 int     ver_factor;      Vertical scale factor.    Value:1 ~ 24
                 char    mode;            Add function as follows:
                                     +----+-------------------------------------+
                                     |mode|           REMARK                    |
                                     +----+-------------------------------------+
                                     | A  |Make auto increment for numeric.     |
                                     +----+-------------------------------------+
                                     | B  |Make auto increment for alphanumeric.|
                                     +----+-------------------------------------+
                                     | C  |Make auto decrement for numeric.     |
                                     +----+-------------------------------------+
                                     | D  |Make auto decrement for alphanumeric.|
                                     +----+-------------------------------------+
                                     | M  |Toggle the mirror mode.              |
                                     +----+-------------------------------------+
                                     | N  |Disable.                             |
                                     +----+-------------------------------------+
                 int     numeric;         Automaticall increment or decrement the
                                          filed value. Value:0 ~ 99.
                 LPCTSTR    data;         Data string.

条码小知识:
什么是二维条码
二维条码是用某种特定的几何图形按一定规律在平面(二维方向上)分布的黑白相间的图形记录数据符号信息的;在代码编制上巧妙地利用构成计算机内部逻辑基础的“0”、“1”比特流的概念,使用若干个与二进制相对应的几何形体来表示文字数值信息,通过图象输入设备或光电扫描设备自动识读以实现信息自动处理:它具有条码技术的一些共性:每种码制有其特定的字符集;每个字符占有一定的宽度;具有一定的校验功能等。同时还具有对不同行的信息自动识别功能、及处理图形旋转变化等特点。