activexobject

Encapsulate ActiveX for JavaScript

ぐ巨炮叔叔 提交于 2019-12-23 16:03:42
问题 I'm trying to develop an website that can use a specific mailing program (lotus-notes), but to do so, I need to create a Session with the application that usually was created using an ActiveXObject() object. The problem is that I won't be the end user of the website, and I do not want to create a website not user friendly, always asking for the user to add extensions in order to make the website functionalities work. I am doing my best to find a workaround to the use of ActivateXObject(),

Get list of Worksheet names using ActiveX to array in javaScript

 ̄綄美尐妖づ 提交于 2019-12-23 03:28:12
问题 How can i get a list of all available Sheet names for my excel file using ActiveX Object? I know this code Excel.ActiveWorkBook.Sheets returns the sheets... But how could I get the NAMES of these sheets in an array? function getTabs() { var w =new ActiveXObject("Excel.Application"); var book = w.Workbooks.Open(excelFile); alert(book.name); //here I get the filename of my xls file and it displays ok var ExcelSheet= book.Sheets; alert(ExcelSheet); //This alerts to 'undefined' w.Quit(); w=null;

Ajax call: What is the difference between new ActiveXObject(“Msxml2.XMLHTTP”) and new ActiveXObject(“Microsoft.XMLHTTP”)?

大兔子大兔子 提交于 2019-12-21 06:19:35
问题 I hope both the object invocations are referring to the ActiveXObject. But why are we passing two different parameters to work in IE. 1. Msxml2.XMLHTTP and 2. Microsoft.XMLHTTP Are they both same ? Or Are they browser dependent(IE7 and IE8) ? I used both. I did not get any exception. Both are looking same for me. I am using IE 8. 回答1: Both are actually outdated. There are various versions of Microsoft's venerable MSXML ActiveX object (I believe the last one was version 5.0 and came with some

Use JavaScript to write to text file?

坚强是说给别人听的谎言 提交于 2019-12-20 02:56:24
问题 I have a need to capture the topics of a search from one of my blog pages and write it to text file for followup. I have been able to capture the input string, however, am not able to write it to a text file. I have read and tried to implement all the solutions I have found with no success. I include a very simple sample of code to write text to file but I can't get it to work. The Onblur event functions fine to access myFunction, so that's not problem. I'm going crazy as samples shown from

What event is triggered when user selects value from drop down ComboBox (ActiveX)?

孤者浪人 提交于 2019-12-19 09:52:57
问题 What event is triggered when user selects value from drop down ComboBox (Active X). How it can be defined in VBA. I would like to trigger macro when value is selected from drop down. 回答1: ComboBox_Click() is the event you are looking for. 回答2: If you're using a ComboBox control in a UserForm , it usually have an AfterUpdate Event . If you're using an ActiveX Control ComboBox in a Sheet, you can try LostFocus Event . Private Sub ComboBox1_LostFocus() End Sub This way, you can type in values

VB: get compiled DLL's calling application info; COM security

蹲街弑〆低调 提交于 2019-12-13 18:20:03
问题 Through COM, one can potentially gain absolute control over a target system. For example: using javascript's ActiveXObject object in IE, one can create certain objects which were designed to have direct access or interaction with system properties and files. One would think common sense dictates users disable ActiveX features in IE immediately after installing the browser to ensure their system is protected while surfing the net, or at least paying close attention to which websites they

ActiveXObject FileSystemObject not releasing in Javascript

心不动则不痛 提交于 2019-12-13 08:14:46
问题 I have a Javascript function that saves JSON data locally, using an ActiveXObject in IE9. It links into FileSystemObject or FSO scripting for file access. If this Javascript function is run more than once, I get an error in IE debugger: "SCRIPT70: Permission denied" pointing to ts = savefile.OpenAsTextStream(2); Why will it run just fine the first time, but not after that? My best guess is that something's not being released properly, although I can find no information on MSDN (or here). Here

ActiveXObject(“Scripting.FileSystemObject”) not working for me

混江龙づ霸主 提交于 2019-12-13 04:38:15
问题 I want to add names of files of a specific folder to an JS's array, but nothing happens: var pics = new Array(); var x; var fs = new ActiveXObject("Scripting.FileSystemObject"); alert('x'); var fo = fs.GetFolder(Server.MapPath("C:\wamp\www\newsite\ErfanGhiasiPanel\Slider Images")); for (x in fo.files){ pics.push(x.Name); } For instance, whet I insert an alert('something') after var fs = new ActiveXObject... or next lines, it won't appear. What you guys think? Thank you 回答1: Assuming JScript +

jscript - The specified module could not be found

只谈情不闲聊 提交于 2019-12-13 02:22:53
问题 Got this error after running Zipjs.bat from solution 2. at: How can I compress (/ zip ) and uncompress (/ unzip ) files and folders with batch file without using any external tools? I don't think the issue is with this specific jscript, but have narrowed it down to this line in it: Var ShellObj=new ActiveXObject ("Shell.Application"); When running the same jscript yesterday it was fine - no error. So any ideas why my system can't see Shell.Application or whether that is even the problem. How

transfer data from word to excel via vba

有些话、适合烂在心里 提交于 2019-12-12 04:28:18
问题 I have a form in ms word with some of the fields are content control and some (which are the radio buttons) are ActiveX control. I want to automatically transfer hundred word forms to an excel file. I use the following vba code: Sub getWordFormData() Dim wdApp As New Word.Application Dim myDoc As Word.Document Dim CCtl As Word.ContentControl Dim myFolder As String, strFile As String Dim myWkSht As Worksheet, i As Long, j As Long myFolder = "C:\Users\alarfajal\Desktop\myform" Application