网络编程
位置:首页>> 网络编程>> Asp编程>> ASP 常见对象总结(熟悉一下利用以后的开发使用)

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

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

标签: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") 
//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")

0
投稿

猜你喜欢

  • CSS重设就是由于各种浏览器解释CSS样式的初始值有所不同,导致设计师在没有定义某个CSS属性时,不同的浏览器会按照自己的默认值来为没有定义
  • 问题描述时间在我们日常的代码编写中会是经常出现的筛选或排序条件,尤其是一些特殊时间节点的时间显得尤为突出,例如昨天,当前日期,当前月份,当前
  • 1、把这段拷到DW里,存成HTML文件。<HTML><HEAD><TITLE>move backgrou
  • 一、将PHP数组转换为JSON格式在PHP中,我们可以直接使用数组来存储数据。但是在JS中,数组通常以JSON(JavaScript Obj
  • 代码如下:<% set studentinstance = CreateStudent()&n
  • 在Internet上我们每天都会遇到数不清的表单,也看到其中大部分并没有限制用户多次提交同一个表单。缺乏这种限制有时候会产生某些预料不到的结
  • 从百度百科中扣去的这个图片轮播代码,图片向左不间断滚动,有停顿:<!DOCTYPE html PUBLIC "-//W3C/
  • SQL语句更改表所有者SQL语句更改表所有者单个修改所有者sql语句如下:查询分析器输入:EXEC sp_changeobject
  •  <input type=button value=刷新 onclick="hist
  • 第一步:安装SQL200,并启动SQL2000。到网上下载SQL2000,并安装完毕。( * 作系统是XP,装的是SQL个人版),按照下面所示
  • 很多人对于CSS都是边干边学习,因为它不像C#之类的语言那么复杂,看起来似乎挺简单,然而正是这种对CSS的不完整的理解,导致了许多的CSS代
  • sysdate+(5/24/60/60) 在系统时间基础上延迟5秒 sysdate+5/24/60 在系统时间基础上延迟5分钟 sysdat
  • <%'解析一个xml文件的公用函数集合dim document'装载一个xml文档,函数名Loaddocument(文
  • 实现原理:将用户信息保存在数据库中,若能在数据库中检索到用户输入的姓名和口令,就允许访问该一页面。代码如下:protect.asp<h
  • 昨天去面试,百度题果然不一样,笔试我就蒙了,现在能记住两道题,笔试:1、title和alt 区别2、三列布局 左边裂固定宽度左对齐,右边列固
  • 译注:开发人员如何从无休止的需求、项目进度中摆脱烦躁的心态,这是每个人都值得思考的话题。无意间看见了这篇文章,恐于太长遂将其精简翻译,错误之
  • 内容摘要:图片切换效果在网页制作中经常被使用,好的切换效果不仅增加了网站的实用行也提升了网站的趣味性。而图片切换方法有的使用flash来实现
  • 阅读上一篇:打造设计你自己的字体 Ⅱ永远都在寻觅字体设计的灵感。夏天过后,我买了一套便宜的书法钢笔,说服自己,它会让我的鸡爬字产生脱胎换骨的
  • 1.获取function形参个数functionName.length2.较适用的运算符delete:删除以前定义的对象属性或方法的引用vo
  • 将有安全问题的SQL过程删除.比较全面.一切为了安全!删除了调用shell,注册表,COM组件的破坏权限MS SQL SERVER2000使
手机版 网络编程 asp之家 www.aspxhome.com