科诚(GoDex)打印机二次开发Demo


二次开发的例子,有C#、VB.NET、VC、dephi等
资源截图
代码片段和文件信息
//---------------------------------------------------------------------------
// Create clsPrinterCommand.h by Jeffrey 2014/07/15
//---------------------------------------------------------------------------
#pragma hdrstop
#include 
#include “clsPrinterCommand.h“
#include “EZio32.h“
#pragma package(smart_init)
using namespace Ezio32;
//---------------------------------------------------------------------------
map < int string > clsPrinterCommand::BarcodeTypeHash;

//---------------------------------------------------------------------------
// Get Barcode Type Hash (map)
//---------------------------------------------------------------------------
void clsPrinterCommand::GetBarcodeTypeHash()
{
    if (BarcodeTypeHash.size() > 0)
        return;

    BarcodeTypeHash[Code39_Extended] = “A“;
    BarcodeTypeHash[Code39_Extended_CheckDidit] = “A2“;
    BarcodeTypeHash[Code39] = “A3“;
    BarcodeTypeHash[Code39_CheckDidit] = “A4“;
    BarcodeTypeHash[EAN8] = “B“;
    BarcodeTypeHash[EAN8_Add2] = “C“;
    BarcodeTypeHash[EAN8_Add5] = “D“;
    BarcodeTypeHash[EAN13] = “E“;
    BarcodeTypeHash[EAN13_Add2] = “F“;
    BarcodeTypeHash[EAN13_Add5] = “G“;
    BarcodeTypeHash[UPCA] = “H“;
    BarcodeTypeHash[UPCA_Add2] = “I“;
    BarcodeTypeHash[UPCA_Add5] = “J“;
    BarcodeTypeHash[UPCE] = “K“;
    BarcodeTypeHash[UPCE_Add2] = “L“;
    BarcodeTypeHash[UPCE_Add5] = “M“;
    BarcodeTypeHash[I2of5] = “N“;
    BarcodeTypeHash[I2of5_CheckDigit] = “N2“;
    BarcodeTypeHash[Codabar] = “O“;
    BarcodeTypeHash[Code93] = “P“;
    BarcodeTypeHash[Code128_Auto] = “Q“;
    BarcodeTypeHash[Code128_Subset] = “Q2“;
    BarcodeTypeHash[UCC_128] = “R“;
    BarcodeTypeHash[PostNET] = “S“;
    BarcodeTypeHash[ITF14] = “T“;
    BarcodeTypeHash[EAN128] = “U“;
    BarcodeTypeHash[RPS128] = “V“;
    BarcodeTypeHash[HIBC] = “X“;
    BarcodeTypeHash[MSI_1MOD10] = “Y“;
    BarcodeTypeHash[MSI_2MOD10] = “Y2“;
    BarcodeTypeHash[MSI_1MOD1110] = “Y3“;
    BarcodeTypeHash[MSI_NoDigitCheck] = “Y4“;
    BarcodeTypeHash[I2of5_ShippingBearerBars] = “Z“;
    BarcodeTypeHash[UCC_EAN128_KMART] = “1“;
    BarcodeTypeHash[UCC_EAN128_RANDOM] = “2“;
    BarcodeTypeHash[Telepen] = “3“;
    BarcodeTypeHash[FIM] = “4“;
    BarcodeTypeHash[Plessey] = “7“;
}

//---------------------------------------------------------------------------
// Start Job (^L)
//---------------------------------------------------------------------------
void clsPrinterCommand::Start()
{
    sendcommand(“^L“);
}

//---------------------------------------------------------------------------
// End Job (E)
//---------------------------------------------------------------------------
void clsPrinterCommand::End()
{
    sendcommand(“E“);
}

//---------------------------------------------------------------------------
// Print Text (Simple)
//---------------------------------------------------------------------------
int clsPrinterCommand::PrintTex

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-09-12 18:10  32
     目录           0  2014-09-12 18:10  32EZio
     目录           0  2014-09-12 18:10  32EZio32
     文件     1680384  2014-09-03 16:15  32EZio32EZio32.dll
     文件        6021  2014-09-04 14:25  32EZio32EZio32.h
     文件        6656  2014-09-03 16:27  32EZio32EZio32_BCB.lib
     文件       14558  2014-09-03 16:15  32EZio32EZio32_VC.lib
     文件     1680384  2014-09-03 16:22  32EZioEZio.dll
     文件        6021  2014-09-04 14:25  32EZioEZio.h
     文件        6144  2014-09-03 16:27  32EZioEZio_BCB.lib
     文件       14410  2014-09-03 16:22  32EZioEZio_VC.lib
     目录           0  2014-09-12 18:10  64
     目录           0  2014-09-12 18:10  64EZio
     目录           0  2014-09-12 18:10  64EZio64
     文件     2296320  2014-09-03 16:25  64EZio64EZio64.dll
     文件        6021  2014-09-04 14:25  64EZio64EZio64.h
     文件       13244  2014-09-03 16:25  64EZio64EZio64_VC.lib
     文件     2296320  2014-09-03 16:23  64EZioEZio.dll
     文件        6021  2014-09-04 14:25  64EZioEZio.h
     文件       13096  2014-09-03 16:23  64EZioEZio_VC.lib
     目录           0  2014-09-12 18:10  Example
     目录           0  2014-09-12 18:10  ExampleEZio_Sample_BCB6
     文件        1262  2013-05-06 13:30  ExampleEZio_Sample_BCB6BEAR.BMP
     文件      221696  2002-02-01 22:00  ExampleEZio_Sample_BCB6cg32.dll
     文件       20793  2014-09-05 16:39  ExampleEZio_Sample_BCB6clsPrinterCommand.cpp
     文件        5251  2014-09-05 16:39  ExampleEZio_Sample_BCB6clsPrinterCommand.h
     文件      331074  2014-09-05 16:40  ExampleEZio_Sample_BCB6clsPrinterCommand.obj
     文件       20789  2014-09-05 16:38  ExampleEZio_Sample_BCB6clsPrinterCommand.~cpp
     文件        5251  2014-09-05 16:39  ExampleEZio_Sample_BCB6clsPrinterCommand.~h
     文件        2840  2014-07-15 11:01  ExampleEZio_Sample_BCB6clsPrinterConfig.cpp
     文件         974  2014-07-15 10:41  ExampleEZio_Sample_BCB6clsPrinterConfig.h
............此处省略298个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)