asp生成Excel最简单的方法
2006-05-19 09:30
489 查看
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!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=utf-8">
<title>CreateExcel</title>
</head>
<body>
<%
action=trim(request("action"))
if action="create" then
Response.ContentType = "application/ms-download"
Response.AddHeader "content-disposition", "attachment; filename=Table" & date() & ".xls"
else
%>
<form action="?action=create" method="post" name="form1">
<div align="right">
<input name="Submit" type="submit" value="生成Excel">
</div>
</form>
<%
end if
%>
<table width="98%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td height="35" colspan="3" align="center">生成Excel示例</td>
</tr>
<tr>
<td align="center">姓名</td>
<td align="center">电话</td>
<td align="center">备注</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
<!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=utf-8">
<title>CreateExcel</title>
</head>
<body>
<%
action=trim(request("action"))
if action="create" then
Response.ContentType = "application/ms-download"
Response.AddHeader "content-disposition", "attachment; filename=Table" & date() & ".xls"
else
%>
<form action="?action=create" method="post" name="form1">
<div align="right">
<input name="Submit" type="submit" value="生成Excel">
</div>
</form>
<%
end if
%>
<table width="98%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td height="35" colspan="3" align="center">生成Excel示例</td>
</tr>
<tr>
<td align="center">姓名</td>
<td align="center">电话</td>
<td align="center">备注</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
相关文章推荐
- 【C#】对异步请求处理程序IHttpAsyncHandler的理解和分享一个易用性封装 【手记】走近科学之为什么明明实现了IEnumerable<T>的类型却不能调用LINQ扩展方法 【手记】手机网页弹出层后屏蔽底层的滑动响应 【手记】ASP.NET提示“未能创建类型”处理 【Web】一个非常简单的移动web消息框 【手记】解决EXCEL跑SQL遇“查询无法运行或数据库表无法打开...”
- ASP.NET 中DataTable调用Excel模块直接生成Excel文件的方法
- ASP 最简单导出excel的方法
- asp导出excel最简单最有效的方法
- Asp.net生成静态页面最简单方法(源码)
- Codeigniter生成Excel文档的简单方法
- Codeigniter生成Excel文档的简单方法
- asp.net简单生成XML文件的方法
- 用C#生成Excel文件的方法,Excel.dll组件生成的方法和设置用ASP.NET操作访问权限
- asp简单生成静态的方法(模板标签替换)
- asp.net生成Excel并导出下载的实现方法
- 简单实用的Asp.net生成静态页方法
- ASP.net中导出Excel的简单方法介绍
- asp导出excel文件最简单方便的方法
- ASP.NET C# 生成静态页面简单方法
- ASP.NET C# 生成静态页面简单方法
- asp生成和导出excel和word数据源码和代码,简单好用(已经测试可以用)
- ASP.net中导出Excel的简单方法
- asp.net简单生成XML文件的方法
- asp.net中利用XML描述文件和Excel模板相结合的方法生成Excel报表