ASP object summary

zhaozj2021-02-16  70

If you have used most, then your ASP skill should be very high.

ADO object (too common):

Connection

Command

Recordset

Record

Stream

There are too many objects supported by ASP, you can write COM components yourself, below is usually used:

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") // network address

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")

Here is what we should know:

CreateObject ("Photoshop.Application")

/ / About 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")

For details, please see the connection below.

http://www.asp101.com/articles/carvin/sqldmobackup/default.asp

// msmq

Server.createObject ("msmq.msmqqueueinfo")

CreateObject ("msmq.msmqquery")

// full-text index

Server.createObject ("IXsso.Query")

Server.createObject ("IXsso.util") I have no summary, please sum up:

CDO, Jmail, Imail, etc.

Some of the following are not common objects:

Accpac Advantage Corporate:

Oaccpac = creteObject ("acpac.xApisession")

Accpac Report Master for Windows:

OimPApp = CreateObject ("Impromptu.Application.30")

BARTENDER:

Obartender = CreateObject ("BARTENDER.Application")

CrystalReports:

Ocrapplication = CreateObject ("CrystalRuntime.Application")

THIS DOESN "T INVOKE An IDE Actually.

Eudora:

Oeud = CreateObject ("eudora.euApplication.1")

Faxmaker:

OFD = CREATEOBJECT ("fMfaxapi.Application")

GroupWise:

OGroupWise = CreateObject ("NovellGroupWaction")

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 can "t 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 = creteObject ("msproject.application") MS SourceSafe:

Ovss = CreateObject ("SourceSafe.0")

MS Word:

OWORD = CREATEOBJECT ("Word.Application")

MS Visio:

Ovisio = CreateObject ("Visio.Application")

MS VisualBasic: I don't know, the website is not registered.

MS VisualcplusPlus: (VC )

OCPP = CreateObject ("msdev.application")

MS VisualfoxPro:

OVFP = CREATEOBJECT ("VisualfoxPro.Application")

MS WindowsscriptingHost:

OWSH = CREATEOBJECT ("wscript.shell")

Novell GroupWise:

OGroupWise = CreateObject ("NovellGroupWaction")

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 = creteObject ("winfax.sdksend")

WinPrint:

OwinPrint = CreateObject ("WinPrint.winprintx")

SQL-DMO Object:

Losql = CreateObject ("SqldMo.application")

Others:

Scripting shell:

Oshell = CreateObject ("wscript.shell")

Scripting Network Object:

Ont = CreateObject ("WScript.Network") Scripting Regular Expression Parser:

Oreg = CREATEOBJECT ("vbscript.regexp")

SQL DMO SQL Server:

CreateObject ("SqldMo.sqlServer")

转载请注明原文地址:https://www.9cbs.com/read-17428.html

New Post(0)