activex

Late binding run-time error in VB6 when creating an object from a .NET assembly

不羁岁月 提交于 2019-12-01 17:21:42
i have a vb6 project that has a reference to a vb.net com library. the project runs well when i use early binding such as: Dim b as object Set b = new myComLib.testObject when i use late binding such as: Dim b as object Set b = CreateObject("myComLib.testObject") i get the following error: Run-time error '429': ActiveX component can't create object Any ideas? thanks The registry entries for the .NET COM Interop class in this case are:- HKEY_CLASSES_ROOT\myComLib.testObject containing a CLSID value and the CLSID entry itself HKEY_CLASSES_ROOT\CLSID\<<myComLib.testObject\CLSID value>> They are

Late binding run-time error in VB6 when creating an object from a .NET assembly

假装没事ソ 提交于 2019-12-01 16:58:10
问题 i have a vb6 project that has a reference to a vb.net com library. the project runs well when i use early binding such as: Dim b as object Set b = new myComLib.testObject when i use late binding such as: Dim b as object Set b = CreateObject("myComLib.testObject") i get the following error: Run-time error '429': ActiveX component can't create object Any ideas? thanks 回答1: The registry entries for the .NET COM Interop class in this case are:- HKEY_CLASSES_ROOT\myComLib.testObject containing a

Run-time error '429': ActiveX component can't create object VBA

為{幸葍}努か 提交于 2019-12-01 16:14:37
I am trying to save Word docs using Excel VBA, but I get the error "ActiveX component can't create object." When I debug, the error comes from the line: Set wrdApps = CreateObject("Word.Application") . It was working fine, but then it just started giving me this error. Does anyone know how to fix this? Thanks for the help! Sub saveDoc() Dim i As Integer For i = 1 To 2661: Dim fname As String Dim fpath As String With Application .DisplayAlerts = False .ScreenUpdating = False .EnableEvents = False End With fname = ThisWorkbook.Worksheets(3).Range("H" & i).Value fpath = ThisWorkbook.Worksheets(3)

How to Set ActiveX Control Name

时间秒杀一切 提交于 2019-12-01 15:46:59
问题 I have an ActiveX control and have signed it with a test certificate every this is working fine but problem is that My internet explorer shows an ugly message The website wants to run following add-on: 'Not Available' from 'Control name is not available', If you trust the website and the add-on and want to allow it to run, click here.... Why the control name is not available? I have made this ActiveX control in C# and have added the attribute ComVisible to my assemblyInfo.cs, here is the code

Javascript, write to txt file save as UNICODE

岁酱吖の 提交于 2019-12-01 15:02:35
I have 2 strings. Would like it all to first make a .txt file and then save the strings to it as unicode. function WriteFile(file, str, str2) { var tmp=real_url.replace(/%20/g, " "); var WshNetwork=new ActiveXObject("WScript.Network"); var userid=WshNetwork.UserName; var fso = new ActiveXObject("Scripting.FileSystemObject"); if(! fso.FolderExists(tmp+"users/"+userid)) { var cf = fso.CreateFolder(tmp+"users/"+userid); } else { //alert("THIS FOLDER ALREADY EXISTS"); } delete fso; var fso = new ActiveXObject("Scripting.FileSystemObject"); var fh = fso.OpenTextFile(tmp+"users/"+userid+"/"+file, 2,

Run-time error '429': ActiveX component can't create object VBA

自闭症网瘾萝莉.ら 提交于 2019-12-01 14:23:19
问题 I am trying to save Word docs using Excel VBA, but I get the error "ActiveX component can't create object." When I debug, the error comes from the line: Set wrdApps = CreateObject("Word.Application") . It was working fine, but then it just started giving me this error. Does anyone know how to fix this? Thanks for the help! Sub saveDoc() Dim i As Integer For i = 1 To 2661: Dim fname As String Dim fpath As String With Application .DisplayAlerts = False .ScreenUpdating = False .EnableEvents =

Pass parameter from page to ActiveX

时光总嘲笑我的痴心妄想 提交于 2019-12-01 12:11:04
<object id="Bacs_DBTableRepX" classid="CLSID:CA8B72B3-3B15-40D7-9364-478E25AF5B41" codebase="Bacs_DBTableRepX.cab" style=" Z-INDEX: 102; LEFT: 20px; WIDTH: 1200px; POSITION: absolute; TOP: 80px; HEIGHT: 600px"> <param name="ax_Command" value='<%=GetText()%>'/> </object> Here is my try but it made no sense. Parameter had not being sent. Is there any examples how to sent parameter to my ActiveX or some mistakes in my code ? Your html code looks like correct, here is a sample: http://www.w3schools.com/TAGS/tag_object.asp I would try to set a breakpoint to the property getter and check whether it

JavaBeans ActiveX Bridge for Java 8?

二次信任 提交于 2019-12-01 11:14:51
There used to be a JavaBeans ActiveX Bridge but AFAIK this is no longer supported under Java 8. I want to call my JavaBeans from Excel, so what is the way to go with Java 8? The problem is I have some legacy JavaBean packaged in a dll that I use from Excel VBA. I don't have the source code to this bean. But I still want to use it with Java 8/9. Is this possible? I solved the problem using Obba : I read the Java bean with a Java parser and generated a VBA wrapper method for each Java method that I want to call. The wrapper calls the original Java method using Obba. I created a VBA class

Pass parameter from page to ActiveX

丶灬走出姿态 提交于 2019-12-01 11:12:21
问题 <object id="Bacs_DBTableRepX" classid="CLSID:CA8B72B3-3B15-40D7-9364-478E25AF5B41" codebase="Bacs_DBTableRepX.cab" style=" Z-INDEX: 102; LEFT: 20px; WIDTH: 1200px; POSITION: absolute; TOP: 80px; HEIGHT: 600px"> <param name="ax_Command" value='<%=GetText()%>'/> </object> Here is my try but it made no sense. Parameter had not being sent. Is there any examples how to sent parameter to my ActiveX or some mistakes in my code ? 回答1: Your html code looks like correct, here is a sample: http://www

Registering to OnClick event of ActiveX control

僤鯓⒐⒋嵵緔 提交于 2019-12-01 10:40:54
问题 Unfortunately, I have not been able to figure out how to do the following: I am developing an Excel Add-In in VSTO / .NET / C#. I have been able to find out how to get references to the ActiveX controls in a worksheet. It is possible via the worksheet.OLEObjects collection. I can search that collection for a particular button if I know the name of the button. So far, so good. But now: How can I register an event handler that gets called when the button is clicked? 回答1: Found a solution now,