请问在ZEBRA打印机上打印条码,需要打印图image,而需要使用ztools来把.pcx转换成.grf
可是我却找不到转换的文件?请为谁清楚这个操作,能否提供方法,如何调用图片使条码打印机打印出图片?

解决方案 »

  1.   

    创建打印作业 
    向窗体中添加 PrintDocument 组件。 
    右击窗体并选择“查看代码”。 
    编写代码以处理 PrintPage 事件。 
    您将必须编写您自己的打印逻辑代码。另外,将必须指定要打印的材料。 
    在下面的示例中,在 PrintPage 事件处理程序中创建一个示例图形(红色矩形)作为要打印的材料。 
    ' Visual Basic
    Private Sub PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
       e.Graphics.FillRectangle(Brushes.Red, New Rectangle(500, 500, 500, 500))
    End Sub// C#
    private void printDocument1_PrintPage(object sender, 
    System.Drawing.Printing.PrintPageEventArgs e)
    {
       e.Graphics.FillRectangle(Brushes.Red, 
         new Rectangle(500, 500, 500, 500));
    }// C++
    private:
       System::Void printDocument1_PrintPage(System::Object *  sender,
          System::Drawing::Printing::PrintPageEventArgs *  e)
       {
          e->Graphics->FillRectangle(Brushes::Red,
             Rectangle(500, 500, 500, 500));
       }
      

  2.   

    to:copico
    你这个是用语句实现打印图形的功能
    我需要的是 往zebra发送zpl2语言,实现打印的功能
    其中我无法调用自己电脑中的image图片