ADO对象:
Connection
Command
Recordset
Record
Stream
ASP支持的对象很多,可以自己编写COM组件,下面是我们经常使用的:
Server.CreateObject("scripting.filesystemobject")
Server.CreateObject("scripting.dictionary")hashtable
server.createxobject("word.Application")//server
activexobject("word.Application")//client
Server.CreateObject("Excel.Application")//server
activexobject("Excel.Application")//client
CreateObject("powerpoint.Application")
Server.CreateObject("Microsoft.xmlhttp")
Server.CreateObject("Microsoft.xmldom")
Server.CreateObject("msxml2.xmlhttp.4.0")
Server.CreateObject("wscript.shell")
Server.CreateObject("wscript.network")//网络地址的
Server.CreateObject("mswc.adrotator")
CreateObject("Excel.sheet")
ms frontpage: ofp = CreateObject("frontpage.Application")
ms access: oaccess = CreateObject("access.Application")
ms graph: ograph = CreateObject("msgraph.Application")
下面是我们应该知道的:
CreateObject("photoshop.Application")
//关于sql server的
CreateObject("sqldmo.sqlserver")
CreateObject("sqldmo.login")
CreateObject("sqldmo.backup")
CreateObject("sqldmo.user")
Server.CreateObject("sqldmo.backupdevice")
Server.CreateObject("sqldmo.database")
Server.CreateObject("sqldmo.restore")
//msmq的
Server.CreateObject("msmq.msmqqueueinfo")
CreateObject("msmq.msmqquery")
//全文索引的
Server.CreateObject("ixsso.query")
Server.CreateObject("ixsso.util")
邮件发送的组件我没有总结,请热心的朋友总结出来:
cdo,jmail,imail等。
下面一些是不太常见的对象:
accpac advantage corporate:
oaccpac=CreateObject("accpac.xapisession")
accpac report master for windows:
oimpapp=CreateObject("impromptu.Application.30")
bartender:
obartender = CreateObject("bartender.Application")
crystalreports:
ocrApplication = CreateObject ("crystalruntime.Application")
this doesnt invoke an ide actually.
eudora:
oeud = CreateObject("eudora.euApplication.1")
faxmaker:
ofax = CreateObject("fmfaxapi.Application")
groupwise:
ogroupwise = CreateObject("novellgroupwaresession")
lotusnotes:
onotes = CreateObject("notes.notessession")
onotes = CreateObject("notes.notesuiworkspace")
onotes = CreateObject("lotus.notessession")(domino 5.0.3)
ms common dialog:
ocommmondialog = CreateObject("mscomdlg.commondialog")&& !!! you cant directly create this object without a development licence, so for dynamically doing it on another machine, see below. -- petercrabtree
ms internet explorer:
oie = CreateObject("internetexplorer.Application")
ieautomationexample
ms mappoint:
omappoint = CreateObject("mappoint.Application")
msn messenger:
omessenger = CreateObject("msnmessenger.messengerapp")
ms netmeeting:
onetmeeting=CreateObject("netmeeting.app.1")
ms outlook:
ooutlook = CreateObject("outlook.Application")
ms outlook express: none - it is not a com server!
ms powerpoint:
opp = CreateObject("powerpoint.Application")
ms project:
oproj = CreateObject("msproject.Application")
ms sourcesafe:
ovss = CreateObject("sourcesafe.0")
ms word:
oword = CreateObject("word.Application")
ms visio:
ovisio = CreateObject("visio.Application")
ms visualbasic: 不知道,网站也没有登记出来。
ms visualcplusplus: (vc++)
ocpp = CreateObject("msdev.Application")
ms visualfoxpro:
ovfp = CreateObject("visualfoxpro.Application")
ms windowsscriptinghost:
owsh = CreateObject("wscript.shell")
novell groupwise:
ogroupwise = CreateObject("novellgroupwaresession")
pcanywhere (host):
opcahost = CreateObject("winawsvr.behostdatamanager")
pcanywhere (remote):
opcarem = CreateObject("winawsvr.remotedatamanager")
quickbooks:
qbsessionmanager = CreateObject("qbfc2.qbsessionmanager")
rationalrose:
orose = CreateObject("rose.Application")
tapifax:
otapifax = CreateObject(faxserver.faxserver)
windowsshell:
owsh = CreateObject("shell.Application")
windows media player:
owmp = CreateObject("wmplayer.ocx")
oplaylist = owmp.playlistcollection.getall()
owmp.currentplaylist = oplaylist.item(0)&& zero based array *!* music starts!
windows messenger:
omessenger = CreateObject("messenger.messengerapp")
winfax:
owinfax = CreateObject("winfax.sdksend")
winprint :
owinprint = CreateObject("winprint.winprintx")
sql-dmo object:
losql = CreateObject("sqldmo.Application")
others:
scripting shell:
oshell = CreateObject("wscript.shell")
scripting network object:
onet = CreateObject("wscript.network")
scripting regular expression_r_r parser:
oreg = CreateObject("vbscript.regexp")
sql dmo sql server:
CreateObject("sqldmo.sqlserver")
ASP 常见对象总结(熟悉一下利用以后的开发使用)
2019-09-07 15:16服务器之家 ASP教程
ASP 常见对象总结(熟悉一下利用以后的开发使用)
延伸 · 阅读
- 2021-04-29C++如何动态的生成对象详解
- 2021-04-29Python面向对象之类和对象属性的增删改查操作示
- 2021-04-28C# 使用反射来实现对象的深度复制方法
- 2021-04-28浅谈C#中List<T>对象的深度拷贝问题
- 2021-04-28Python面向对象基础入门之设置对象属性
- 2021-04-27Python面向对象之类和对象实例详解
精彩推荐
- ASP教程
javascript asp教程第五课--合二为一
两条防线,一个函数: 试问你如何能保证客户端和服务器端具有相同的功能?表单域的验证闪现在我们眼前。别人把你的html复制到另外一个脚本,然后改...
- ASP教程
asp代码实现检测组件是否安装的函数
asp代码实现检测组件是否安装的函数...
- ASP教程
Discuz!NT 论坛整合ASP程序论坛教程
Discuz!NT 论坛整合ASP程序论坛 实现代码。...
- ASP教程
asp知识整理笔记4(问答模式)
继前几篇篇《asp知识整理笔记1》和《asp知识整理笔记2》,《asp知识整理笔记3》新鲜出炉: 23、问题:在ASP文件中读取HTML的表单字段有几种方法? 答:R...
- ASP教程
FSO遍历目录实现全站插马的代码
FSO遍历目录实现全站插马的代码...
- ASP教程
asp生成静态HTML(动态读取)
这样的代码多用于我们没有实现设计生成静态的功能,但又想临时将一些动态页面生成静态的,直接获取动态内容并保存为静态的...
- ASP教程
动网论坛验证码改进 加法验证码(ASPJpeg版)
很多站长都为论坛里太多的垃圾广告抓狂,本程序就是为了对付论坛垃圾广告群发器的。 将验证码改为加法运算,比如验证码显示“25+64等于?”,那么输...
- ASP教程
asp 判断上传文件中是否存在危险代码
asp 判断上传文件中是否存在危险代码...