473,808 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create Object in VBScript

Hi. I have COM+ component installed on my XP. I have problem to create
instance of it inside vbscript. How can I do it? The error I get is :
ActiveX component can't create object. Thanks
Apr 30 '07 #1
3 8545
Michael wrote:
Hi. I have COM+ component installed on my XP. I have problem to create
instance of it inside vbscript. How can I do it? The error I get is :
ActiveX component can't create object. Thanks
Hard to say. Start here:
http://classicasp.aspfaq.com/compone...ad-errors.html

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Apr 30 '07 #2
Hi. I need the new solution. Following the ASP event process over to client
vbscript where I have to create object of COM+ component installed on my
computer. My web application will work only on local computer with supplied
com+ components(they will registered by normal install process). I've got
error when I use createobject function in client vbscript. By Creating
object I will run 1 function which will return me string value. After then I
need to continue work with same vbscript client function. I tried to make
new asp file with "window.ope n" method. There i create object successful but
don't know how to pass function result back to vbscript.
here is some code of <name.aspfile
<head>
<script language=vbscri pt>
sub func()
' Set path=CreateObje ct("Server.Repo rt")
' previous line gave me an error

' new try
window.open "createpath.asp ?variable=<%=so mevariable%>"
' here I need to get result
end sub
</script>
</head>
<body onload="onLoad( )">
</body>
file createpath.asp

<%
dim myServer, newpath
Set myServer = Server.CreateOb ject("Server.Re port")
newpath = myServer.GetRep ort(Request("va riable")) ' if I do this way how
to transfer new path back to sub func?
%>
<body onload="self.cl ose()">
</body>


Please help



"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcomwrote in message
news:Oi******** ******@TK2MSFTN GP05.phx.gbl...
Michael wrote:
>Hi. I have COM+ component installed on my XP. I have problem to create
instance of it inside vbscript. How can I do it? The error I get is :
ActiveX component can't create object. Thanks

Hard to say. Start here:
http://classicasp.aspfaq.com/compone...ad-errors.html

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

May 2 '07 #3
some error in previuos letter
<body onload="func()" >
</body>


"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcomwrote in message
news:Oi******** ******@TK2MSFTN GP05.phx.gbl...
Michael wrote:
>Hi. I have COM+ component installed on my XP. I have problem to create
instance of it inside vbscript. How can I do it? The error I get is :
ActiveX component can't create object. Thanks

Hard to say. Start here:
http://classicasp.aspfaq.com/compone...ad-errors.html

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

May 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2068
by: Jiang | last post by:
Does anybody know how to create client side Excel.Application objects from aspx code? I know in vbscript you can put into <script language="vbscript"> Dim oXL, oBook Set oXL = CreateObject("Excel.Application") Set oBook = oXL.Workbooks.Add ....
6
9356
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty sure it is a permission issue because the script works when I point the browser directly at the .htm file on the c: drive: c:\inetpub\wwwroot\DemoSite\VbScriptTest.htm
2
4355
by: thisis | last post by:
Hi All, What options/methos/properties/functions/objects do I have in order to create a Function in ASP/VBScript that process/create binary data as an image file type? The Function is supoosed to get 2 parameters: 1. The file image content type defined as "image/bmp" , strContentType
7
6210
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function Body_Onload() ' create the object Set obj = Server.CreateObject("UploadImage.cTest") ' use method of the object Body_Onload = obj.cTestDelete
20
10992
by: Highlander | last post by:
Hello all. Consider the following HTA: <html> <head> <title>Date Pulldowns</title> <HTA:APPLICATION ID="HTAUI" APPLICATIONNAME="Date Pulldowns" SCROLL="no" SINGLEINSTANCE="yes"
0
1777
by: jonyoung | last post by:
I think I need to use WIA Windows Image Acquisition to load an image file and create a thumbnail of it and write it out again. Can anyone think of a better way to do it in ASP? I need to upload the images and then resize them all to the same sizes and formally store them as the large image and its thumbnail. I have found a way to upload the image using VBScript that works well in ASP. To use WIA to resize the images I have to create an...
1
8008
by: niveknornev | last post by:
Anyone ever used a script to create RDP session files? You can edit an RDP file using any text editor, however if you try to use simple batch, or vbscript to append text to that file, it doesn't retain it normal properties. Hopefully this example will make sense. I have 300 servers. I have a file with all their names/or/IPs in it. I wanted to create a batch file or vbscript that would run through that list and create files named...
2
3472
by: stjones1 | last post by:
My company has implementd Vista with IE7 and office 2007. We also use Sharepoint extensively for team sites and division portals. I am in Sharepoint consultation/support. One user just moved a website from our old system to sharepoint, and now one of her links is broken. It is a simple ASP page with parameters that uses VB script to create an Excel object and load an Excel file into it (wb name, sheet name, and scroll number are the ASP...
1
4210
by: jdub33 | last post by:
I have a web project that used a vb6 class library. The asp page would call a createobject() to access the class library. I recently updated the vb6 class library to .net2005. I unregistered the old class library and registered the new .net dll using regasm using /codebase and registered the dll in the GAC. I can access the dll using a vbscript that just does this: dim o set o = createobject( "DataAccess_NET.DataAccess" ) Wscript.Echo...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10633
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10114
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9198
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.