急求!!C#实现斑马105SL条码打印机的标签打印【标签有不同大小】请大侠们帮帮忙! 在线等待.....
有代码实现过程更加好...

解决方案 »

  1.   

    用条码打印机提供的动态连接库,仔细阅读人家的SDK
    以下是示例,条码机型号不同[DllImport("TSCLib.dll")] 
    public   static extern  void   openport(string PrinterName);
    [DllImport("TSCLib.dll")]
    public   static extern  void   clearbuffer();
    [DllImport("TSCLib.dll")]
    public   static extern  void   windowsfont(int a,int b,int c,int d,int e,int f,string g,string h);
    [DllImport("TSCLib.dll")]
    public   static extern  void   closeport(); 
    [DllImport("TSCLib.dll")]
    public   static extern  void   setup(string a,string b,string c,string d,string e,string f,string g);
    [DllImport("TSCLib.dll")]
    public   static extern  void   barcode(string a,string b,string c,string d,string e,string f,string g,string h,string i);
    [DllImport("TSCLib.dll")]
    public   static extern  void   printerfont(string a,string b,string c,string d,string e,string f,string g);
    [DllImport("TSCLib.dll")]
    public   static extern  void   sendcommand(string a);
    [DllImport("TSCLib.dll")]
    public   static extern  void   printlabel(string a,string b);
    [DllImport("TSCLib.dll")]
    public   static extern  void   formfeed(); 
    [DllImport("TSCLib.dll")]
    public   static extern  void   nobackfeed();
    [DllImport("TSCLib.dll")]
    public   static extern  void   downloadpcx(string a,string b);
     
      

  2.   

    可以看看我写的这个软件
    http://www.ync-tech.com/注:
    使用前请先安装打印机驱动:
    http://www.seagullscientific.com/downloads/drivers/archive/7.2/7.2/Zebra_7.2.exe