预览模式: 普通 | 列表

asp导出excel用到的类

因为项目需要,所以从网上找了一个类,但是那个类问题比较多,所以自己修改了一下,增加容错程度,提升一些性能,里面有部分代码是根据我的项目修改的,所以大家在使用的时候自己改一下就可以了。

使用方法:
<%On Error Resume Next%>
<!--#include file="../Include/Constants.Class.asp"-->
<!--#include file="../Include/Config.Class.asp"-->
<!--#include file="../Include/DBControl.Class.asp"-->
<!--#include file="../Include/FunctionLib.Class.asp"-->
<!--#include file="../Include/Manager.Class.asp"-->
<!--#include file="../Include/Export2Excel.Class.asp"-->
<%

查看更多...

Tags: ASP Excel 网页

分类:程序代码 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 9843

ASP导出EXCEL代码

XSL.ASP

<!--#include file="conn.asp"-->


<%
Set xlApplication = Server.CreateObject("Excel.Application") '调用excel对象
xlApplication.Visible = False '无需打开excel
xlApplication.SheetsInNewWorkbook=1 '指定excel中表的数量
xlApplication.Workbooks.Add '添加工作簿
Set xlWorksheet = xlApplication.Worksheets(1) '生成第1个工作表的子对象

查看更多...

Tags: ASP Excel 网页

分类:程序代码 | 固定链接 | 评论: 2 | 引用: 0 | 查看次数: 19478