我用生成word来实现打印,
<%@ page contentType="application/msword;charset=gb2312" %>
其他和普通jsp没什么区别,
但是这个html 需要在word中先生成html。
<%@ page contentType="application/msword;charset=gb2312" %>
其他和普通jsp没什么区别,
但是这个html 需要在word中先生成html。
并在想要显示表格的地方插入如下javascript:
<script>
document.writeln(tblhtml);
</script>
就可以了,具体情况要自己调了