如何将ASP页面中的表格生成一个Excel表,求源码
1个回答
展开全部
'给你个例子吧。保存为 asp文件运行看看。具体就在第一句。
<%Response.ContentType = "application/vnd.ms-excel" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<body>
<table border="0" width=100%>
<tr>
<td colspan="22" align=middle>PJ计画书</td>
</tr>
<tr>
<td colspan="4">第版</td>
<td colspan="18"></td>
</tr>
</table>
<table border="1" width=100%>
<tr>
<td colspan="3">案件No</td>
<td colspan="4"></td>
<td colspan="2">案件名</td>
<td colspan="13"></td>
</tr>
<tr>
<td colspan="3" >主管部门</td>
<td colspan="4" ></td>
<td colspan="2" >顾客</td>
<td colspan="13" ></td>
</tr>
<tr>
<td colspan="3" >PJ责任者</td>
<td colspan="4" ></td>
<td colspan="2" >営业担当</td>
<td colspan="4" ></td>
<td colspan="2" >纳期</td>
<td colspan="3" ></td>
<td colspan="2" >事业种别</td>
<td colspan="2" ></td>
</tr>
<tr rowspan="2">
<td colspan="3" rowspan="2">请负金额</td>
<td colspan="4" rowspan="2"></td>
<td colspan="2" rowspan="2">开発原価</td>
<td colspan="4" rowspan="2"></td>
<td colspan="2" >社员费</td>
<td colspan="2" >外注费</td>
<td colspan="2" >部材费</td>
<td colspan="3">冲PJ番号</td>
<tr><td colspan="2" ></td>
<td colspan="2" ></td>
<td colspan="2" ></td>
<td colspan="3"></td>
</tr>
</tr>
<tr>
<td colspan="3" >案件の概要</td>
<td colspan="19" ></td>
</tr>
<tr>
<td colspan="22"></td>
</tr>
<tr>
<td colspan="2">SUB案件</td>
<td >工程</td>
<td colspan="2">责任者</td>
<td colspan="3">期间</td>
<td colspan="2">総工数(H)</td>
<td colspan="3">アウトプット</td>
<td >业务管理适用</td>
<td colspan="5">要员</td>
<td >外注</td>
<td colspan="2">実绩终了日</td>
</tr>
<tr>
<td colspan="2"></td>
<td ></td>
<td colspan="2"></td>
<td colspan="3"></td>
<td colspan="2"></td>
<td colspan="3"></td>
<td ></td>
<td colspan="5"></td>
<td ></td>
<td colspan="2"></td>
</tr>
<tr>
<td colspan="22">マイルストーン</td>
</tr>
<tr>
<td colspan="7">设计検证完了</td>
<td colspan="8">予定</td>
<td colspan="7">実绩</td>
</tr>
<tr>
<td colspan="7"></td>
<td colspan="8"></td>
<td colspan="7"></td>
</tr>
<tr>
<td colspan="3">规模见积の根拠</td>
<td colspan="19"></td>
</tr>
<tr>
<td colspan="7">品质目标</td>
<td colspan="8">目标</td>
<td colspan="7">実绩</td>
</tr>
<tr>
<td colspan="7">故障率</td>
<td colspan="8"></td>
<td colspan="7"></td>
</tr>
<tr>
<td colspan="7">不稼动率</td>
<td colspan="8"></td>
<td colspan="7"></td>
</tr>
<tr>
<td colspan="7">プログラム完成度</td>
<td colspan="8"></td>
<td colspan="7"></td>
</tr>
<tr>
<td colspan="7"></td>
<td colspan="8"></td>
<td colspan="7"></td>
</tr>
<tr>
<td colspan="4">品质目标设定の根拠</td>
<td colspan="18"></td>
</tr>
<tr>
<td colspan="5"></td>
<td colspan="3">予定日</td>
<td colspan="4"></td>
<td colspan="2">実施日</td>
<td colspan="3"></td>
<td colspan="2">承认者</td>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="5">要求事项レビュー(记録)</td>
<td colspan="17"></td>
</tr>
<tr>
<td colspan="5">管理手顺</td>
<td colspan="17"></td>
</tr>
<tr>
<td colspan="5">PJ区分</td>
<td colspan="17"></td>
</tr>
<tr>
<td colspan="5">PJ入力情报</td>
<td colspan="17"></td>
</tr>
<tr>
<td colspan="5">纳入物品</td>
<td colspan="17"></td>
</tr>
<tr>
<td colspan="5">合否判断基准</td>
<td colspan="17"></td>
</tr>
<tr>
<td colspan="5">设计制造の出荷判定责任者、またはサービスの合否判断责任者</td>
<td colspan="17"></td>
</tr>
<tr>
<td colspan="5">PJ终了要件</td>
<td colspan="17"></td>
</tr>
<tr>
<td colspan="4">作业标准</td>
<td colspan="18"></td>
</tr>
<tr>
<td colspan="4">作业手顺</td>
<td colspan="18"></td>
</tr>
<tr>
<td colspan="4">事前教育</td>
<td colspan="18"></td>
</tr>
<tr>
<td colspan="4">外注管理方法</td>
<td colspan="18"></td>
</tr>
<tr>
<td colspan="4">顾客所有物</td>
<td colspan="18"></td>
</tr>
<tr>
<td colspan="4">准备机器及び调达计画</td>
<td colspan="18"></td>
</tr>
<tr>
<td colspan="4">PJ会议</td>
<td colspan="18"></td>
</tr>
<tr>
<td colspan="4">计画承认</td>
<td colspan="14"></td>
<td colspan="4"></td>
</tr>
<tr>
<td colspan="4">PJ终了承认</td>
<td colspan="5"></td>
<td colspan="2">予定日</td>
<td colspan="5"></td>
<td colspan="2">実绩日</td>
<td colspan="4"></td>
</tr>
<tr>
<td colspan="4">记事栏</td>
<td colspan="18"></td>
</tr>
<tr>
<td colspan="4">変更理由</td>
<td colspan="18"></td>
</tr>
</table>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询