473,385 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 8524
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.open" 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=vbscript>
sub func()
' Set path=CreateObject("Server.Report")
' previous line gave me an error

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

<%
dim myServer, newpath
Set myServer = Server.CreateObject("Server.Report")
newpath = myServer.GetReport(Request("variable")) ' if I do this way how
to transfer new path back to sub func?
%>
<body onload="self.close()">
</body>


Please help



"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:Oi**************@TK2MSFTNGP05.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******@NOyahoo.SPAMcomwrote in message
news:Oi**************@TK2MSFTNGP05.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
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 =...
6
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...
2
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...
7
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...
20
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
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...
1
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...
2
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...
1
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.