activexobject

Programmatically accessing archived mails in an Exchange folder

泄露秘密 提交于 2021-02-11 12:15:29
问题 I am trying to access all the mails in a given folder via the ActiveX interface to Outlook 2013. I use the message API (MAPI) of Outlook to get the desired folder object. However, when I go through all the items of this folder object, many messages are missing. Indeed, there are messages that are on the MS Exchange server that are not synchronized with Outlook because they are too old. (In Outlook, the folder ends with a link named 'Click here to view more on Microsoft Exchange'. When

What is the difference between creating a COM instance through CreateObject versus ActiveXObject?

女生的网名这么多〃 提交于 2021-01-27 06:31:39
问题 This has been touched on here in the second answer but I don't see how it answers the question (nor does the link provided). What can ActiveXObject do that CreateObject cannot, and vice-versa? 来源: https://stackoverflow.com/questions/7932771/what-is-the-difference-between-creating-a-com-instance-through-createobject-vers

ActiveX Legacy Code not displaying Excel Application window

给你一囗甜甜゛ 提交于 2020-12-13 21:12:56
问题 I have the following legacy javascript code that runs ActiveX in an html report. This code works and displays an Excel sheet on the user's screen filled up with data from my report. //some initialisations here var Excel, Book; // Create the Excel application object. Excel = new ActiveXObject("Excel.Application"); // Make Excel visible. Excel.Visible = true; // Create a new work book. Book = Excel.Workbooks.Add(); //headers[] init here for (var j = 0; j < colCount; j++) { //setting my report

ActiveX Legacy Code not displaying Excel Application window

对着背影说爱祢 提交于 2020-12-13 21:09:40
问题 I have the following legacy javascript code that runs ActiveX in an html report. This code works and displays an Excel sheet on the user's screen filled up with data from my report. //some initialisations here var Excel, Book; // Create the Excel application object. Excel = new ActiveXObject("Excel.Application"); // Make Excel visible. Excel.Visible = true; // Create a new work book. Book = Excel.Workbooks.Add(); //headers[] init here for (var j = 0; j < colCount; j++) { //setting my report

ActiveX Legacy Code not displaying Excel Application window

断了今生、忘了曾经 提交于 2020-12-13 21:09:12
问题 I have the following legacy javascript code that runs ActiveX in an html report. This code works and displays an Excel sheet on the user's screen filled up with data from my report. //some initialisations here var Excel, Book; // Create the Excel application object. Excel = new ActiveXObject("Excel.Application"); // Make Excel visible. Excel.Visible = true; // Create a new work book. Book = Excel.Workbooks.Add(); //headers[] init here for (var j = 0; j < colCount; j++) { //setting my report

ActiveX Legacy Code not displaying Excel Application window

混江龙づ霸主 提交于 2020-12-13 21:07:31
问题 I have the following legacy javascript code that runs ActiveX in an html report. This code works and displays an Excel sheet on the user's screen filled up with data from my report. //some initialisations here var Excel, Book; // Create the Excel application object. Excel = new ActiveXObject("Excel.Application"); // Make Excel visible. Excel.Visible = true; // Create a new work book. Book = Excel.Workbooks.Add(); //headers[] init here for (var j = 0; j < colCount; j++) { //setting my report

Using Excel data to create Word Doc caption labels in VBA

≡放荡痞女 提交于 2020-03-26 03:04:11
问题 I am trying to link a Word document report to an Excel database with VBA. I inserted various ActiveX text box controls in my document. I am manually entering each one of these text boxes with unique code ("Code"). The other text box controls will automatically populate based on the associated data in the Excel database. The matching factor will be the "Code". When I run the following code, I receive a Run Time Error 13 "Type Mismatch" on Row 16 ( If cell.Value... ). I don't have a lot of

in JavaScript, when finished with an object created via new ActiveXObject, do I need to set it to null?

雨燕双飞 提交于 2020-02-03 10:25:28
问题 In a Javascript program that runs within WSH and creates objects, let's say Scripting.FileSystemObject or any arbitrary COM object, do I need to set the variable to null when I'm finished with it? Eg, am I recommended to do this: var fso = new ActiveXObject("Scripting.FileSystemObject"); var fileStream = fso.openTextFile(filename); fso = null; // recommended? necessary? ... use fileStream here ... fileStream.Close(); fileStream = null; // recommended? necessary? Is the effect different than

Java Desktop.browse occasionally returning “requested lookup key not found in any active activation context”

↘锁芯ラ 提交于 2020-01-25 09:45:13
问题 I am really struggling with this issue as it seems to occur randomly for me. When I call, Desktop.browse("some url"); Internet Explorer will not display. The exception message is as follows, The requested lookup key was not found in any active activation context. When it occurs it occurs consistently until I restart the machine, but it eventually occurs again. The workstations that seem to have this problem are running Windows XP with Internet Explorer 8 set as the default browser. EDIT: I

ReferenceError: not defined with activeX

浪子不回头ぞ 提交于 2020-01-16 01:06:13
问题 what does it mean to get this error: ReferenceError: ActiveXObject is not defined var fso = new ActiveXObject("Scripting.FileSystemObject"); here is my code: var fso = new ActiveXObject("Scripting.FileSystemObject"); varFileObject = fso.OpenTextFile("C:\\LogFile.txt", 8, true,0); // 8=append, true=create if not exist, 0 = ASCII newObject.write(XML.innerHTML); newFileObject.close(); thanks in advance.. 回答1: The problem is the security setting of your browser is blocking it. If you try IE6 the