ASP 常见对象总结(熟悉一下利用以后的开发使用)

来源:asp之家 时间:2011-03-07 10:57:00 

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,常见对象
0
投稿

猜你喜欢

  • Oracle SQL性能优化系列学习三

    2010-07-23 13:08:00
  • 如何在Access 2007数据库中添加附件

    2008-11-21 12:32:00
  • 如何解决SQLServer占内存过多的问题

    2008-12-18 15:01:00
  • asp如何实现网上考试功能?

    2010-05-24 18:32:00
  • SQL Server中ISNULL函数介绍

    2009-09-09 21:23:00
  • 浏览器针对单服务器连接数问题

    2008-05-12 22:27:00
  • 如何选择合适的MySQL存储引擎

    2009-02-04 13:02:00
  • 轻松解决AJAX的中文乱码问题

    2008-09-03 12:55:00
  • oracle 时间格式的调整

    2009-05-24 19:32:00
  • asp如何刪除客户端的Cookies?

    2010-05-18 18:25:00
  • IE8 的 noscript 标签 Bug

    2009-08-18 12:37:00
  • asp 采集程序常用函数分析

    2011-03-16 11:03:00
  • asp将table生成excel文件(xls)

    2011-03-07 11:17:00
  • 细化解析:MySQL 数据库中对XA事务的限制

    2009-01-14 11:59:00
  • div中class与id的区别及应用

    2007-09-22 08:37:00
  • 纯ASP结合VML生成完美图-饼图

    2010-05-11 16:49:00
  • 关于设计的一些个人看法

    2008-06-12 12:44:00
  • 仿豆瓣分页原型(Javascript版)

    2007-11-05 14:04:00
  • mysql如何跨时区迁移数据

    2010-03-25 10:26:00
  • 带你深入了解SQL Server 2008的独到之处

    2009-01-07 14:20:00
  • asp之家 网络编程 m.aspxhome.com