解决方案 »

  1.   

    你的问题好宽泛,让人怎么回答啊说一下我知道的几个吧:
    1、如果你的目标是生成一张图片,图片中有这个表格。那实际上就是画直线。BufferedImage bi = new BufferedImage(width, height,BufferedImage.TYPE_INT_RGB);
        Graphics gc=bi.getGraphics();
        gc.drawLine(x1, y1, x2, y2);
    2、你要生成Excel格式的文件:用jxl 或poi,此外如aspose.cell之类的
    3、你要生成待表格的word文档:用poi或jacob ,此外如aspose.word
    4、你要生成的是报表,可以用一些报表工具,如gridreport