有什么方法可以做票据打印功能呀!!非常着急用!!!
asp中有什么方法可以做票据打印功能呀!!非常着急用!!!先在这谢谢大家了!! 问题点数:100、回复次数:3Top
1 楼slimpotato(显显)(地狱式恶补英语中..)回复于 2006-03-24 12:56:48 得分 40
可以有两种方案~`
一种使用EXCEL,先画好票据的模板,然后对这个模板填充值~`
然后显示给用户,使之能够自己打印。
另外一种直接使用<table>,以HTML的形式输出,然后直接打印。
建议使用EXCEL,功能比较强大~``Top
2 楼kingkuf(捷克)回复于 2006-03-24 13:04:59 得分 0
可以给个例子吗?有点不太清楚
Top
3 楼sky0120(忍者鱼)回复于 2006-03-24 14:18:52 得分 60
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%
'设置输出为 word 格式
response.ContentType ="application/vnd.ms-word"
Response.AddHeader "Content-Disposition", "attachment; filename=1.doc"
'设置输出为 excel 格式
'response.ContentType ="application/vnd.ms-excel"
%>
<BR><BR><div align="center" style="font-size:26px "><strong> 计 划 申 报 表</strong></div><BR><BR>
<table border="1" width="100%" cellpadding="4" cellspacing="0" bordercolor="#000000" align="center" style="border-collapse: collapse">
<tr height="40">
<td style="font-size:22px " width="5%"><div align="center" style='font-family:"楷体_GB2312"'>序号</div></td>
<td style="font-size:22px " width="28%"><div align="center" style='font-family:"楷体_GB2312"'>内容及目的</div></td>
<td style="font-size:22px " width="10%"><div align="center" style='font-family:"楷体_GB2312"'>时间</div></td>
<td style="font-size:22px " width="10%"><div align="center" style='font-family:"楷体_GB2312"'>地点</div></td>
<td style="font-size:22px " width="20%"><div align="center" style='font-family:"楷体_GB2312"'>联系人及电话</div></td>
</tr>
</table>
</body>
</html>
Top




