大3了,本学期的课程设计是用Java写个列车售票系统,数据库什么的大概都想好了,但一想到最后要打印车票不知道用什么技术好?请大家提提建议根据顾客的要求打印不同的车票

解决方案 »

  1.   

    就是调用windows的打印任务不行么?
      

  2.   

    去学习下AWT的绘图功能你就会了。
      

  3.   

    去学学Itext,很简单的一个PDF打印!
      

  4.   

    如果是我,就用java的image包了,往模板图片上加字,似乎不是很难
      

  5.   


    using System;delegate void SampleDelegate(string message);//声明委托,定义所需要的签名class MainClass
    {
      //在类中定义两个与委托具有相同参数列表的方法
      static void SampleMethod1(string message)
      {
        Console.WriteLine("SampleMethod1\t" + message);
      }
      static void SampleMethod2(string message)
      {
        Console.WriteLine("SampleMethod2\t" + message);
      }
      static void Main()
      {
        //声明一个委托对象d1,并以SampleDelegateMethod为引用赋值给它
        SampleDelegate d1 = SampleMethod1;
        d1("Hello");        //调用 delegate d1
        d1 = SampleMethod2;
        d1("World");        //调用delegate d2
      }
    }