ActiveX - VBscript
Hi,
Is there any public examples of an interface between a scripting environment
(VBscript...) and Labview - esp. written in Labview ?
I am trying to interface VBscript with Labview 5.0 . Problem: I invoke
the Scriptcontrol.AddObject method to expose my instrument control VIs to
the scripting side. This method takes an Object as a parameter... How can
I access a labview VI as an ActiveX object in Labview directly ? ( beyond
Automation / VI server refnums, which can not work). Thanks,
SCD
I do have a Dell (ugh!) when I'm faced with these issues.
So you do have a means of getting to the site. The only way to do so on a Mac is to install and run VirtualPC and Windows (which would still mean you were running Windows).
Similar Messages
-
Hai to all,
i want to call LabVIEW_VI(Activex Server) from VBScript. That VBScript include onther COM Server. i want to data exchange between VBScript and LabVIEW. That parameters shouldbe two types, I mean some parameters ByVal and some ByRef.
How can i call?
Request: How to create VI function with ByRef parameter in LabVIEW.
ex: in 'C++': LabVIEWFunction(short* numb1, CString* str1).
Note: i am using LabVIEW 7.0 Express.
Thanks for advance!Hello.
I am not sure if I understand correctly. Sure, you can access both controls (inputs) and indicators (outputs) with the LabVIEW ActiveX server. If you use the call function i mentioned in my last answer, you might pass two arrays to the function. One array with the control/ indicator names and another one containing the values. After calling the VI you will find the data of the VI outputs inside the values-array.
Have a look at the attatched ZIP file. It contains a simple example showing the procedure.
Attachments:
callVI.zip 8 KB -
Vbscript runtime error 429 activex component can't create object
hi i am writing a VB Script where it runs a batch files
but when the batch file is called from the script its giving error as
runtime error 429 activex component can't create object
my script is as follows
strcmd = "utility.bat"
Set wshSystemEnv = wshshell.Environment("USER")
wshshell.Run strcmd
can some one help me with this ?
Thank youSorry, your script makes no sense. You never create the object wshshell
and you never use the object wshSystemEnv. Start the code with
set WshShell = WScript.CreateObject("Wscript.Shell") -
Crystal Report Addon Error : ActiveX Component Can't Create Object
Hello Experts,
We are facing an problem when we start the Crystal Report Addon .The error message getting
displayed is "CR_Crypto ActiveX Component Can't Create Object".This issue is happening only on the
server its working fine on the client. We had even unistalled and re-installed the addon in the server but
still it throws the error when we start the addon.
Please help us to resolve this issue
Thanks,
VishwanathDear Friend,
I had described the problem to our technical support team, and they replied as follows u2013
They solved the Script related error by several stages.
They checked the machine for any mal-ware existence by the tool provided by Microsoft (MS Mal-ware remover).
Then they tried by installing the following patches from Microsoft u2013
http://support.microsoft.com/kb/949140
Windows Script 5.7 for Windows XP
http://www.microsoft.com/downloads/details.aspx?familyid=887fce82-e3f5-4289-a5e3-6cbb818623aa&displaylang=en
Windows Script 5.6 for Windows Server 2003
http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en
Windows Script 5.6 for Windows XP and Windows 2000
The internal matter to this problem was about the following DLL and its version u2013
C:\WINDOWS\system32
vbscript.dll
5.5.0.8820
Desired
5.6.0.8820
Check, if the information helps you. -
How do I use a LabView control element as ActiveX Control in another application?
I am was trying to include some simple ActiveX Controls(sliders, buttons) in my VBScript. It worked with other ActiveX Components from the web, however I wasn't able to include the LabView ActiveX Controls because I was missing the necessary IDs. Moreover I was able to test the LabView control by inserting it into the VC++- Test Container. But I still can't find the necessary IDs...
I don't believe that any of the LabVIEW controls (except for 3D Graphs) are ActiveX controls so I'm not sure what control you were able to insert into the VC++ container. What's the exact name of the control? NI does have ActiveX controls that are part of Measurment Studio so maybe it's one of those that you're using?
-
ASP page hang for calling ActiveX bridge!!!
Below are the steps I done
Note: Using jdk1.5.1.
1) It is my java program, i make it as simple program
public class FirstProgram{
public FirstProgram(){
public String getMessage(){
return "hello";
2) My manifest.stub is like this:
Name: FirstProgram.class
Java-Bean: true
3) Then I generate the "FirstProgram.jar" file.
4) Then I register like this
jdk1.5.1\bin\packager -out C:\Program Files\Java\ j2re1.5.1\axbridge\bin -reg FirstProgram.jar FirstProgram
5) I tested this dll with Visual Basic. It works fine.
6) I tested this dll with VB script in ASP.
<%@ Language=VBScript %>
<%
Dim oTest
Set oTest = CreateObject("FirstProgram.Bean.1")
Response.Write oTest.getMessage()
Set oTest = Nothing
%>
or I tried like this
<%@ Language=VBScript %>
<%
Dim oTest
Set oTest = Server.CreateObject("FirstProgram.Bean.1")
Response.Write oTest.getMessage()
Set oTest = Nothing
%>
Page will be be unavaible and i run it again (then IIS will hang and die).
1) How do i solve this problem? Why it is able to run in VB not in asp? Is it because IIS bug?
Note: Windows Server 2003 IIS 6.0/ Windows XP IIS 5.1 ( I have tested it on
these two environments, it gave me same results).
2) I read some forums said we might need to use javareg.exe to register this component. Is it true? Where can I get this component?
Thanks for you help!!!I am having the same problem.
I am running Windows 2003 Server and trying to create the object, but it is hanging. I am running the Sun JRE 1.5.3 ActiveX Bridge.
I have tried both IIS6 and IIS5 Isolation Mode, but neither work. Under IIS5, IIS just hangs.
HELP! -
Flex ActiveX Control Event is Missing
Hi,
I wrote an ATL CAxDialogImpl based dialog DLL to host a flash
activex control. When I launched the DLL dialog box from a command
line C# program, I can get all the events sent from the flash
activex control to the dialog instance object, e.g. fscommand,
FlashCall, OnReadyStateChange, etc.
Now, I try to load the dialog DLL in IE using a simple local
html with VBScript, the dialog box shows up and the flash shows up
too. But I can no longer get fscommand, and FlashCall events from
the Flash activex control to the dialog instance object,
interestingly, I can still get the OnReadStateChange events.
I don't know if this is a known problem already, or it's a
bug, or is there any workaround for it, or I simply did something
wrong.
Your help is highly appreciated.
Best Regards,
EJIANGHi,
This is due to security functionality introduced in Flash
8.0. I have read the
Security
Changes in Flash Player 8 and pages linked in the
fscommand
function documentation several times but it's unclear for me in
which sandbox are put files opened in hosted ActveX Flash control.
If someone knows this would be very helpful.
Adobe states that embeding Flash Player ActiveX is not
supported and stays quiet. Maybe SliverLight guys will be more
comunicative.
We have resolved this by using AxWebBrowser control and
hosting the Flash player in a webpage instead of hosting it in
Flash ActiveX.
Another solution if you are using only local files is to try
to use "file://YOUR_PATH_TO_FILE" as an argument for LoadMovie
method. But this works only on local files.
Hope this helps -
Oracle Reporting ActiveX Control vs. Internet Explorer
Including an Oracle reporting Activex Control in a commonly Html file for Internet Explorer it works fine (generate the report) but it does'nt generate the events (BeforeRunReport,AfterRunReport).
I mention that in other development tools (Visual C++,VB,Devloper6,...) It is OK.
Example code :
<OBJECT ID="XREP" CLASSID="CLSID:289D6F9F-2A7D-11CF-AD05-0020AF0BA9E2">
<PARAM NAME="ReportName" VALUE="d:\temp\test.rep">
<PARAM NAME="OutputDestination" VALUE="2">
<PARAM NAME="OutputName" VALUE="d:\temp\test1.htm">
<PARAM NAME="DatabaseUser" VALUE="adi/adi@adi">
<PARAM NAME="OutputDriver" VALUE="HTMLCSSIE">
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub XREP_BeforeRunReport(x)
document.write("Before")
End Sub
Sub XREP_AfterRunReport(x, y)
document.write("After")
End Sub
DIM XXX
XXX = XREP.RunReportSimple()
-->
</SCRIPT>
Please tell me what it is wrong in this code because the events "BeforeRunReport","AfterRunReport" didn't fire at all.Including an Oracle reporting Activex Control in a commonly Html file for Internet Explorer it works fine (generate the report) but it does'nt generate the events (BeforeRunReport,AfterRunReport).
I mention that in other development tools (Visual C++,VB,Devloper6,...) It is OK.
Example code :
<OBJECT ID="XREP" CLASSID="CLSID:289D6F9F-2A7D-11CF-AD05-0020AF0BA9E2">
<PARAM NAME="ReportName" VALUE="d:\temp\test.rep">
<PARAM NAME="OutputDestination" VALUE="2">
<PARAM NAME="OutputName" VALUE="d:\temp\test1.htm">
<PARAM NAME="DatabaseUser" VALUE="adi/adi@adi">
<PARAM NAME="OutputDriver" VALUE="HTMLCSSIE">
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub XREP_BeforeRunReport(x)
document.write("Before")
End Sub
Sub XREP_AfterRunReport(x, y)
document.write("After")
End Sub
DIM XXX
XXX = XREP.RunReportSimple()
-->
</SCRIPT>
Please tell me what it is wrong in this code because the events "BeforeRunReport","AfterRunReport" didn't fire at all. -
RE: ActiveX control and Active Server Pages?
Martin, if it works in standalone VB program but not in an .asp page
through VBScript, I guess the reason may be the type mismatch on the
parameters of the ActiveX automation methods. VBScript is a subset of VB
and only supports the OLE data type VARIANT for calling the OLE
interface. The Conductor ActiveX control probably requires the actual
data types, such as long, BSTR, and so on, to be used on the parameters.
As a result, VBScript cannot call the methods on the control. One
workaround you can try is to create your own ActiveX control which is
simply a wrapper for calling the Conductor control. Its parameter types
use VARIANT and you do the data conversion in your wrapper code. Hope
this helps.
Lenny Hon
Descartes Systems Group
-----Original Message-----
From: Martin Peters [SMTP:[email protected]]
Sent: Monday, July 27, 1998 10:50 AM
To:
Subject: ActiveX control and Active Server Pages?
Hello Forte users,
Did anyone try to use the ActiveX control that ships with Conductor
1.0G in an Active Server Page?
I tried to use the ActiveX control without luck, so a sample would be
appreciated. The code
works fine in Visual Basic.
Below the code:
<HTML>
<BODY>
<%
Set thisDirectory =
Server.CreateObject("CONDUCTORCLIENT.WFDirectoryServiceCtl.1")
Set thisEngine = thisDirectory.WFFindEngine("ceengine", "centrale")
Set thisUser =
Server.CreateObject("CONDUCTORCLIENT.WFUserProfileDescCtrl.1")
thisUser.New
thisUser.ProfileName = "MiniUP"
thisUser.userName = "martin"
' The following call fails: Invalid procedure call or argument:
'thisEngine.OpenSession'
Set thisSession = thisEngine.OpenSession("CREATE", thisUser, "martin",
0)
Set thisProcess = thisSession.CreateProcess("MiniPD", Empty)
thisSession.CloseSession (WFSESSION_TERMINATED)
%>
</BODY>
</HTML>
Martin Peters
COMPAQ
NSIS - AD&I - Application Connect
email <[email protected]>
phone: +31 (30) 2834902
fax: +31 (30) 2834980
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>I don't have 6.1 in front of me now. I came up with a workaround for my application when I encounted this problem. I created an attribute node for the container and the tab control. Whenever the tab control was not on the page with the control, I made the container invisible. This then hid the activeX control.
-
Quicktime activeX object issues on Vista 64
I'm creating a .js based plugin detector and am getting an error on Vista 64.
The snippet of the script used for QT detection in Internet explorer is:
try
control = new ActiveXObject('QuickTime.QuickTime');
catch (e)
error = true;
try
// This generates a user prompt in Internet Explorer 7
control = new ActiveXObject('QuickTimeCheckObject.QuickTimeCheck.1');
catch (e)
error = true;
if (control && control.QuickTimeVersion)
qtVersion = control.QuickTimeVersion.toString(16); // Convert to hexadecimal - using base 16
//qtVersion = parseInt(qtVersion.substring(0, 1),16) + '.' + parseInt(qtVersion.substring(1, 2),16) + "." + parseInt(qtVersion.substring(2, 3),16);
qtVersion = parseInt(qtVersion.substring(0, 1),16) + '.' + parseInt(qtVersion.substring(1, 2),16);
qtVersion = qtVersion;
qtInstalled = "Yes";
I'm getting a "QuickTimeVersion is null or undefined" error, but only in Vista 64. Vista 32 bit and all XP machines I've checked, report the version w/out any errors. I'm not quite sure why the QuickTimeVersion property isn't being returned properly.
Is there another QT ActiveX object I can use?
Thanks,
ShannonI think this had to do with the fact that I had never actually had the browser load the QT plug-in (I haven't visited any web sites with embedded QuickTime). I ran a VBScript detector, which caused a prompt asking me to allow the plugin from Quicktime, which I did. After the javascript was working fine. I'm just not sure why the ActiveX Object call didn't kick off the prompt.
-
Trying to evaluate VBScript to SAP connection
Hello,
I'm in need of some help. I have no experience with SAP, I'm currently working with VBScript. The company I work for uses SAP and they deployed a module to track parts being received. Unfortunately, the module was designed to receive one part at a time. Some of the locations will be receiving dozens of parts. I have been tasked with finding a way to provide a web page (vbscript) where the user can receive the parts in a batch. In order to accomplish this I need to be able to get data from SAP and then write data back to SAP.
Is it possible to not only read, but to write data back to SAP using VBScript? I want to implement a good solution and I need to implement a solution that the SAP administrators will be ok with.
I really could use some help finding a good starting point to help me understand what I need. If I can't do what I need in VBScript then I need to find a third-party tool that will let me interface with SAP.
Thank you,
BradBrad,
VBScript can read and write SAP data. Without knowing the details of exactly
what you are trying to do I'll post a little code that you may find useful:
Dim fc, sapConn, conn
Set fc = CreateObject("SAP.Functions") ' function control
Set sapConn = CreateObject("SAP.LogonControl.1") ' sap connection object
Set conn = sapConn.NewConnection() ' sap connection object
conn.System = "yoursystem" ' test, prod, development, whatever
conn.SystemNumber = "99" ' numeric
conn.ApplicationServer = "your.application.server" ' the machine name or ip
conn.MessageServer = "your.message.server" ' the machine name or ip
conn.client = 999 ' the client number
conn.user = "user_name" ' your rfc enabled user name
conn.Password = "password" ' the above named account password
Dim retcd
retcd = conn.Logon(0, True) ' establish the connection
If (retcd = False) Then
WScript.Echo "SAP Logon Failed."
Else
' do something useful
end if
These guys have some pretty useful coding examples too:
<a href="http://sapass.metro.client.jp/Sap_Active_X/index.htm">Useful Examples for vbscript and sap activex</a>
Please note, most of the examples on the above web site use VBA and not
vbscript. So, leave out the As ... part of every Dim statement for pure vbscript.
Here is an SAP URL on the subject you may find useful:
<a href="http://help.sap.com/saphelp_46c/helpdata/en/39/7e11e0ac6011d189c60000e829fbbd/frameset.htm">SAP RFC BAPI Interfaces</a>
Good luck!
Ray -
Query Data Finder Server with ActiveX
I haven't been able to find much resources on how to use ActiveX to Query a Data Finder Server. I know that this is all supposed to be done with the ToCommand but I have no idea how it is done beyond this. Can someone give me some direction as to what commands are needed to Open a Data Finder, Create a Query, Merge Queries, and get resulting file paths?
Thanks,
David VanleeuwenHi Djvanlee,
So they are not ActiveX commands, you would use VBScript Commands with a ToCommand reference writing to DIAdem through invoke nodes. Are you using LabVIEW with the ToCommand reference?
An example of this can be found by opening up the DIAdem - Example Finder by going to Help>>Examples and it will be on the Context tab under the directory Examples>>Create Scripts>>Using Interfaces>>Controlling DIAdem from LabVIEW. Then the commands can be found in the DIAdem Help on the Contents tab by going to Programming Reference>>Object Oriented Script Interfaces>>DIAdem NAVIGATOR>>Methods. The methods you would reference are labeled as <DataFinder>. It looks like the main commands you would need are:
ConnectDataFinder()
CreateQuery()
Load Query()
SaveQuery() \\Note when you save the query you will have to indicate the path.
If you are looking for a good example of programmatically using the DataFinder in the script tab in DIAdem you can find this in the ExampleFinder on the Contents tab at "Extending Functionalities with Scripts>>Context Menu for the Search Results of the DataFinder". The ResultsList_Menus_Add.VBS connects to the DataFinder programmatically and loads a query.
Peter T
Applications Engineer
National Instruments -
Java applet to ActiveX controls
is it possible to write an applet which internally talks to a
an activex control written in VB?. i have a requirement where
we have to write some components to be used with both IE and Netscape.
not sure how to go about it.Yes, you can do this.
I worked on a similar requirement some years ago; MSDN has samples on how to do this. The basic idea is to use VBScript to access the "dom" and get hold of the applet object.
Try searching on MSDN with ActiveX and Java.
Hope this helps.
S -
VBSCript .asp page 8.5 CRViewer Selecting specific Printer
I am still writing in vbscript (not .net) and have a web page that currently uses activex and the CRViewer 8.5. I need the report to print to a specific printer that does not have to display. Will the CRViewer control do this or is there a better way to print a report directly to a selected printer? I am needing examples.
Hi, Herb;
We don't have an exact sample of what you are looking for. But, have a look at these samples:
https://smpdl.sap-ag.de/~sapidp/012002523100005920112008E/aspxmps85.exe
There is one, that is export to file. It does not use the viewer, as viewing is not needed, just as you will not need to view.
You can then use the PrintOut method of the report object to print the report without viewing it.
Regards,
Jonathan -
I've have a vbscript that utilizes sql-dmo and accesses sql 2005 and sql2008 r2(with back ward compatability). I now have a sql 2012 server where this script no longer works. I've attempted to change the sql-dmo to smo per the documentation,
but am getting an error right from the start.
Set objSqlServer = CreateObject("Microsoft.SQLServer.Management.SMO.Server") returns "Microsoft VBScript runtime error: ActiveX component can't create object: 'Microsoft.SQLServer.Management.SMO.Server'"
Does this not work using vbscript? If not, what is my best course of action.
thanks in advance for any help on this.The easiest way to do this is by installing SQL Server Management Studio, which includes the PowerShell feature and client libraries automatically.You
must install a SQL Server feature that includes the SQL Server PowerShell (SQLPS) module and client libraries. The SQL Server PowerShell (SQLPS) module contains
the PowerShell providers and cmdlets for all SQL Server features.
--Prashanth
Maybe you are looking for
-
I have charges on my account that were not approved by me, need to cancel my credit card on here and don't know how!!
-
I have gotten locked out of my ipod touch and do not know the password, but my computer cannot restore it, so I need to know how to get in without restoring it.
-
ORA-20011: Approximate NDV failed:
Following errors written to the Alert log file. can anybody tell u what is the reason & how we can resolve ORA-20011: Approximate NDV failed: ORA-29913: error in executing ODCIEXTTABLEOPEN callout ORA-29400: data cartridge error Thanks in advance..
-
Using two computers with single Ipod
I have an IMac G5 which I have my main ITunes library of music on. I also have an IBook that I travel with and occassionally I download a disc of music onto that computer's Itunes. Then I want to download that disc to my Ipod but if I connect to the
-
Hi all i need your help. I am trying to create an alert that lets me know when a business partner is created. How will i go about creating the query Thanks in advanced