activexobject

How to sign activeX object in JavaScript

心不动则不痛 提交于 2019-12-08 13:39:19
问题 I have a function with ActiveX Objects in my Javascript file to simulate a F11 for fullscreen mode. I want to sign this code to avoid some security issue, anyone who knows how I could do it ? The code : function fullScreenWindow() { var el = document.documentElement , rfs = // for newer Webkit and Firefox el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen ; if(typeof rfs!="undefined" && rfs){ rfs.call(el); } else if(typeof window

Allowing ActiveXObject for a trusted site

主宰稳场 提交于 2019-12-08 08:26:47
问题 I've had an idea that would greatly improve the intranet homepage at an organisation, but this idea needs activexobject. During testing, I've been unable to disable the prompt asking for confirmation on whether to run the control. How can I overcome this? (The Organisation only uses IE, 8 in some places, but mostly 9) All help appreciated 回答1: Please follow below steps to disable opening of ActiveX prompt for allowing to run. ActiveX controls are essentially mini-programs that can be shared

Reading Excel file from JavaScript

自古美人都是妖i 提交于 2019-12-06 16:08:53
问题 I have following code for reading excel in javascript : <html> <head> <script type="text/javascript"> function readData(x,y) { var excel = new ActiveXObject("Excel.Application"); alert(excel); var excel_file = excel.Workbooks.Open("D:\File1.xlsx"); Excel.Visible = true; alert(excel_file); var excel_sheet = excel_file.Worksheets("DEPT INC UPDATE"); alert(excel_sheet); var data = excel_sheet.Cells(x,y).Value; alert(data); return data; } </script> </head> <body> <input type="button" value=

How to use ActiveXObject in Angular 4 project

倖福魔咒の 提交于 2019-12-05 12:54:52
I am trying to use ActiveXObject like below getActiveXObject(pdfCtrl) { return new ActiveXObject(pdfCtrl); } checkPDF() { let plugin = null; if (this.getBrowser() === 'ie') { plugin = this.getActiveXObject('AcroPDF.PDF') || this.getActiveXObject('PDF.PdfCtrl'); } return plugin; } It gives error like ActiveXObject not found. In plain JS this works, but in Angular/typesript compilation phase it throws error. How do i handle this? example for msxml - ActiveXObject is available only in IE, in Chrome using native methods: import * as ts from "typescript"; ... private loadMsXml(src: string): any {

Use ActiveX in C#

こ雲淡風輕ζ 提交于 2019-12-05 04:11:42
问题 I have a javascript code like this: o = new ActiveXObject("ASDFsome.Application"); utilites = WScript.CreateObject("ASDF.Utilites.UTF.Converter") utilites.Convert(outFile, xmlProp.xml) Now I want to rewrite it in C# code. How should I use ActiveXObject in Net? 回答1: This is in no small part why the dynamic keyword was added to C# version 4: dynamic utilites = Activator.CreateInstance(Type.GetTypeFromProgID("ASDF.Utilites.UTF.Converter")); utilites.Convert(outFile, xmlProp.xml); If you're stuck

Reading Excel file from JavaScript

旧城冷巷雨未停 提交于 2019-12-04 19:35:13
I have following code for reading excel in javascript : <html> <head> <script type="text/javascript"> function readData(x,y) { var excel = new ActiveXObject("Excel.Application"); alert(excel); var excel_file = excel.Workbooks.Open("D:\File1.xlsx"); Excel.Visible = true; alert(excel_file); var excel_sheet = excel_file.Worksheets("DEPT INC UPDATE"); alert(excel_sheet); var data = excel_sheet.Cells(x,y).Value; alert(data); return data; } </script> </head> <body> <input type="button" value="SimpleButton" onclick="readData(2,3);" /> </body> </html> But dunno where it is going wrong ?? your input

Excel ActiveX Listbox not enabled on file open

a 夏天 提交于 2019-12-04 02:16:19
I am trying to figure out a bizarre situation. I have a workbook with many sheets. On one sheet, I have one ActiveX listbox (CTOverview.Listbox1). On a second sheet, I have a total of three listboxes (CTSelected.Listbox1 thru Listbox3). I am using a query to populate Listbox1 on both sheets with the same data. The code for this is below: strSQL = "Select Distinct [Region] From [UniqueCTList$] Order by [Region]" closeRS OpenDB ' initialize listboxes CTSelect.ListBox1.Clear CTSelect.ListBox2.Clear CTSelect.ListBox3.Clear CTOverview.ListBox1.Clear ' initialize with entire division value CTSelect

Use ActiveX in C#

孤者浪人 提交于 2019-12-03 20:31:24
I have a javascript code like this: o = new ActiveXObject("ASDFsome.Application"); utilites = WScript.CreateObject("ASDF.Utilites.UTF.Converter") utilites.Convert(outFile, xmlProp.xml) Now I want to rewrite it in C# code. How should I use ActiveXObject in Net? This is in no small part why the dynamic keyword was added to C# version 4: dynamic utilites = Activator.CreateInstance(Type.GetTypeFromProgID("ASDF.Utilites.UTF.Converter")); utilites.Convert(outFile, xmlProp.xml); If you're stuck on an earlier version then using a VB.NET class library is the best approach. It directly supports the

Excel 2010 ActiveX Controls No Longer Working After Windows Updates [duplicate]

本小妞迷上赌 提交于 2019-12-03 15:58:51
This question already has answers here : Closed 4 years ago . Microsoft Excel ActiveX Controls Disabled? (11 answers) So at work I ran into this issue after I installed the most recent Windows 7 updates (including Microsoft Office 2010 updates) - the date up the update was today (Dec 12, 2014). After the update, I opened my macro enabled workbook in Excel 2010 and basically anything that referenced ActiveX controls (checkboxes, buttons) no longer worked. My auto_open was checking checkboxes and couldn't run... it kept erroring at the first checkbox check. The buttons are also no longer

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

北战南征 提交于 2019-12-01 09:19:06
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. ComboBox_Click() is the event you are looking for. 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 and then run the routine after you select another object. 来源: https://stackoverflow.com/questions/29362456/what