现在需要做这么一个功能,客户自己定制的票据,一式五联的,要用平推的压杆打印机打印,这个数据由我做的系统提供打印,用我的系统打印,各位做过的大侠给点思路,顶者有分,大家一块说说

解决方案 »

  1.   

    通常情况都是购买专业的设备,设备都会提供相应的API 来调用的
      

  2.   

    打印机买来了,是爱普生LQ-590K,使用空白打印纸打,用五联五等分的纸打
      

  3.   

    我现在也在写一个套打程序,源码是内网发不出来,根据你的情况应该就是套打了,得到打印机挡板的偏移,要代码的话建议看下msdn的打印部分的代码,基本上根据你的需求,这个项目不会很难,msdn应该能解决大部分问题。
      

  4.   

    刚找到个教材看了看,学到下面这些,现在是想打印出一个两行五列的表格,控制打印的纸张大小为A4的五分之一,打印的表格尽量充满纸张,各位大侠给点具体的指导吧  private void button1_Click(object sender, EventArgs e)
            {
                printDialog1.AllowPrintToFile = true;
                printDialog1.AllowCurrentPage = true;
                printDialog1.AllowSomePages = true;
                printDialog1.Document = this.printDocument1;
                if (printDialog1.ShowDialog() == DialogResult.OK)
                {
                    
                    if (MessageBox.Show("是否要预览打印文档", "打印预览", MessageBoxButtons.YesNo) == DialogResult.Yes)
                    {
                        this.printPreviewDialog1.UseAntiAlias = true;
                        this.printPreviewDialog1.Document = this.printDocument1;
                        this.printPreviewDialog1.ShowDialog();
                    }
                    else
                    {
                        printDocument1.Print();
                        
                    }
               }
            }        private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
            {
                //打印
                e.Graphics.DrawString("ttttttttttttttttttttttttttttttttttttttttttttt",new Font("宋体",20),Brushes.Black,80,80);
            }