
在jsp中怎样打印从数据库中读出显示在表格中的数据?
1个回答
展开全部
可以做一个jsp页面,然后在这上面生成表格数据
如下代码即可实现打印<html<head<title打印</title
<script language=javascript
function doPrint(){window.print();}<script</head
....这里是由jsp生成的数据表格,不过注意排版</body</html
如下代码即可实现打印<html<head<title打印</title
<script language=javascript
function doPrint(){window.print();}<script</head
....这里是由jsp生成的数据表格,不过注意排版</body</html
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询