本帖最后由 zhlin118 于 2011-11-10 11:28:28 编辑

解决方案 »

  1.   

    在 
    void printBarcode_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
            {
                e.Graphics.DrawImage(printBmp, new Point(0, 0));
            }
    里面加一句 
    e.Graphics.DrawImage(printBmp, new Point(printBmp图片的width, 0));
      

  2.   


    你的条码数据源是怎么设置的?我把我做过的告诉你你参考一下吧:我这里打印设备是用的BarTender7.75这个工具,打印的格式都是设置好的模板文件(.btw),你想要打印出来什么样子你就把模板设置成什么样子,打印的时候就是
    调用一个命令就可以了,没必要通过绘图去出来(个人觉得而已),数据源我是采用的文本文件,将需要打印的条码数据保存在一个文本文件里面,然后在程序里面指定
    到这个文本文件为数据源,需要打印几张就打印几张。   string bartendAdd = this.txtConfig.Text.Trim();   
       string sn = @"D:\Bartend\temp.txt";
       string btw = @"D:\Bartend\Num_1.btw";
       Process.Start(bartendAdd, "/NOSPLASH  /F=\"" + btw + "\" /D=\"" + sn + "\" /P /X");