activex

Working with “Out” Parameters in JavaScript

风格不统一 提交于 2019-11-27 06:44:51
问题 I am working with an ActiveX control in Internet Explorer 8 that is to display a save file dialog which let's the user choose a file name and file type (jpg, gif, etc). These values get passed to code and then are used in a different method to save the file. Unfortunately the method that invokes the dialog has no return value, and the file name and file type are passed in as out parameters. The signature of the method (expressed in Visual Basic) looks like this: Public Sub SaveFileDialog( _

ActiveX event handlers in an HTA using Javascript

大兔子大兔子 提交于 2019-11-27 06:38:39
问题 In C# I can write event handlers as follows: var wdApp = new Microsoft.Office.Interop.Word.Application(); wdApp.DocumentBeforeSave += (Document doc, ref bool saveAsUI, ref bool cancel) => { //do stuff here }; In VBA/VB6, I can use static event handling: Dim WithEvents wdApp As Word.Application Private Sub wdApp_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As Boolean, Cancel As Boolean) 'do stuff here End Sub I would prefer to use dynamic event handling. However, in Javascript, even when

What can you do with COM/ActiveX in Python? [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 06:30:20
I've read that it is possible to automate monthly reports in Crystal Reports with COM/ActiveX. I'm not that advanced to understand what this is or what you can even do with it. I also do a lot of work with Excel and it looks like you also use COM/ActiveX to interface with it. Can someone explain how this works and maybe provide a brief example? luc First you have to install the wonderful pywin32 module. It provides COM support. You need to run the makepy utility. It is located at C:\...\Python26\Lib\site-packages\win32com\client . On Vista, it must be ran with admin rights. This utility will

opening Outlook through javascript

耗尽温柔 提交于 2019-11-27 05:38:32
Does anyone know how to open Outlook using Javascript? I am getting an exception (in IE6) while using this code: var outlookApp = new ActiveXObject("Outlook.Application"); Bravax You can definitely do this, the code looks like: var objO = new ActiveXObject('Outlook.Application'); var objNS = objO.GetNameSpace('MAPI'); var mItm = objO.CreateItem(0); mItm.Display(); mItm.To = p_recipient; mItm.Subject = p_subject; mItm.Body = p_body; mItm.GetInspector.WindowState = 2; p_recipient, p_subject & p_body being variables, passed in. You need to ensure this is running on a webpage which users trust, as

What is error code 0x800A01A8 coming out of Excel ActiveX call?

此生再无相见时 提交于 2019-11-27 04:48:30
问题 I am using LabVIEW to talk to Excel via its ActiveX interface. For some reason after some time successfully writing to a spreadsheet I got this error when attempting to call the a function which does something with the range. Sorry this question is so vague, but its because I am actually using another toolkit to take care of the Excel writing. Anybody know if there is a lookup table for Excel ActiveX calls anywhere? Thanks 回答1: This error code means "Object Required." It sounds like your

Extending an ActiveXObject in javascript

坚强是说给别人听的谎言 提交于 2019-11-27 04:38:21
问题 I want to add some functionality track certain calls to ActiveX object methods in javascript. I usually create my activeX object like this: var tconn = new ActiveXObject("Tconnector"); I need to log every time the open method is called on tconn and all other instances of that activeX control. I cant modify tconn's prototype because it does not have one! I think that i can create a dummy ActiveXObject function that creates a proxy object to proxy calls to the real one. Can you help me do that?

IE11 prevents ActiveX from running

帅比萌擦擦* 提交于 2019-11-27 04:37:43
Our web browser plugin works fine in IE9 and IE10 but in IE11 the plugin is neither recognized as an add-on or allowed to run. It's as if IE11 no longer supports ActiveX. Surely there is a workaround but what do we need to change? NOTE: this questions is asked as the developer of the plugin and not the end-user who might need to correct IE settings! IE displays a active x warning and ask for permission if you allow it to run or not. To overcome this the only solution is to; Open Internet Explorer. Click the Tools menu, and then click Internet Options. On the Security tab, click the Custom

ActiveX component can't create object

送分小仙女□ 提交于 2019-11-27 04:13:51
问题 I have just installed a third party app on my Windows Server 2008 server and I get the ActiveX Component can't create object message when I try to access using a CreateObject in VBScript. It is definitely installed and exists under "Programs and Features". Does anyone have a list of things that I can check to figure out what is going on? I have now tried to register the DLL using regsvr32.exe /i bob.dll as suggested but I get this error: The Module "Bob.dll" was loaded but the entry-point

Place a command button in a cell MS Excel vba

被刻印的时光 ゝ 提交于 2019-11-27 03:35:11
问题 I want to place a command button in a cell though VBA code. Say position B3. I used macro recorder for this purpose but it gives me the top bottom values of the button. I don't want that cuz if I take my code to some other computer with another screen resolution, the code will fail. A cell position (example B3) will be an absolute position. Can you suggest me a way to do this. P.S Its an activeX button Thanks 回答1: You can't place any object "in" a cell, only over it. You can set the button's

Calling a .dll function from a html page that runs on chrome and firefox

怎甘沉沦 提交于 2019-11-27 02:56:11
问题 I have a dll written in c++. now i need to call the functions in the dll from a html page. I have done this by calling the dll in vbscript (Activex) so that i can run the only in IE. Now i need to run this on Chrome as well as Firefox. What i have to do, whether i have to write in javascript simply or need to develop any extensions for that ? can anyone give a solution with a simple demo for this? Thanks in advance. 回答1: You have no chance until you create non-portable extension for all