ASP之对象总结
如果你使用过大部分,那么你的asp功力应该是非常高的了
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")
具体的例子请看下面的连接
https://www.101.com/articles/carvin/sqldmobackup/default.asp
//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 parser:
oreg = createobject("vbscript.regexp")
sql dmo sql server:
createobject("sqldmo.sqlserver")