activex

Reading a txt file from Javascript

霸气de小男生 提交于 2020-01-19 06:22:47
问题 am trying to read few lines from a txt file using JS,and i have this code but its not working for some reason,, var fso = new ActiveXObject("Scripting.FileSystemObject"); var s = fso.OpenTextFile("C:\\wamp\\www\\22.txt", 1, true); var row = s.ReadLine(); alert(row); any suggestions?! 回答1: If you're running WAMP anyway, just use standard AJAX to fetch the file 22.txt from the server. The easiest way is to use jQuery, where the code would be: $.get("22.txt", function(data) { alert(data); } You

ActiveX Button Renaming

做~自己de王妃 提交于 2020-01-17 13:49:47
问题 First, I am aware of the nearly ubiquitous issue with ActiveX controls and the Dec 2014 MS Excel update. This appears to be different than the common symptoms, but it may be related. Symptoms: Open an existing excel sheet that contains an ActiveX control. Click the button and nothing happens (macro does not launch) Investigation shows that the button name has changed from "BtnMacroLaunch" to "CommandButton3" I open the file on other users machines and the button has NOT been renamed and it

Questions about COM/ActiveX objects

社会主义新天地 提交于 2020-01-16 18:14:14
问题 I have good knowledge on the working of a "traditional" .dll . Also the differences between dynamic loading and static loading , etc. But I have the following doubts about the working of COM objects, Is it mandatory to register COM objects with regsvr32 ? can I have two versions of a registered COM object lying in the same/different directory? besides being packaged inside a .dll file is there anything in common between a "traditional" .dll and a COM object ? 回答1: 1) No - it is NOT necessary

Can't install Topaz SigPlus ActiveX control under Delphi XE. Have error messages

我的未来我决定 提交于 2020-01-15 12:42:40
问题 I'm installing Topaz's SigPlus ActiveX control http://www.topazsystems.com/Software/download/sigplusactivex.htm under Delphi XE Pro under Windows 7 x64. This activeX control installs fine under Delphi 7. I'm following these basic instructions http://topazsystems.com/Software/download/delphihowto.pdf After clicking on OK in the final instruction, I get these errors under the 'Structure' panel Failed to find standard type 'IInterface' at line 81 (81:5) Failed to find standard type 'IInterface'

Ajax calls do not work in IE unless you fiddle with security settings

夙愿已清 提交于 2020-01-15 03:25:07
问题 IE sucks, at times. Until IE 10, IE did not provide support for the XMLHttpRequest Object. Rather, you must use the XActiveXObject Object for running AJAX calls. JQuery boots up this object by default and maintains it throughout a ternary function if it is present (which is all the time, essentially, should your browser be IE). But, you can see the problem already. In order to use this ActiveX Object, you must fiddle with the security settings in IE in order to allow scriplets, unsigned

Viscom Scanner ActiveX控件v7.2.0.1-SEO-狼术

╄→гoц情女王★ 提交于 2020-01-14 18:16:03
扫描仪SDK ActiveX 能够使用带有进纸器的扫描仪扫描多页,在最后一页扫描时自动保存为多页PDF或TIFF。 有能力检测卡纸事件。 从所有TWAIN兼容扫描仪和网络摄像头设备捕获图像。 支持将扫描的图像保存到 Microsoft Word (docx)。 能够调整扫描仪图像分辨率(DPI)。 能够调整扫描仪捕获区域。 具有启用/禁用ADF进纸器的功能。 能够启用/禁用双面扫描。 扫描时具有启用/禁用进度条的功能。 支持加载图像文件和大PDF文件。(BMP,JPG,GIF,PNG,多页TIFF,PDF)。( 加载PDF 需要附加组件 高级PDF查看器 模块 ) 支持使用JPEG压缩或ZIP压缩保存到PDF。 支持空白页检测,获取特定页面的置信度值(使用置信度值可以处理不同的空白页情况) 支持使用JPEG压缩,在保存调用OCR2SearchableMultipagePDF方法保存到PDF / A文件时调整质量。它可以输出PDF / A文件的小文件。 读取图像中的一维和二维条形码。支持的UPC-A,UPC-E,EAN-8,EAN-13,Code 39,Code 93,Code 128,ITF,Codabar,MSI,RSS-14(所有变体),QR Code,Data Matrix,Aztec和PDF- 417。自动条形码类型检测,可在任何方向读取多个条形码

Find all properties of an ActiveX component

一世执手 提交于 2020-01-14 10:28:32
问题 I tried looking around but was not able to convince myself with an answer as the world of COM/ActiveX seems to be very confusing. Basically what I want to know is, given the GUID, is there a way to know all the interfaces, properties and methods exposed by an ActiveX control? I read somewhere that you just have to ask if a particular property is there or not. But how do I ask about a property before knowing what are there? I guess IDispatch does something similar, but I am not able to make

WScript is undefined

一笑奈何 提交于 2020-01-14 04:59:10
问题 I am trying to run a Javascript file locally, which is supposed to create a CSS image sprite using ImageMagick. It's part of the OpenID selector JS component: http://code.google.com/p/openid-selector/ The generate-sprite.js (http://code.google.com/p/openid-selector/source/browse/trunk/generate-sprite.js?r=140) file is supposed to create the image sprite automatically. However, whenever I run it in IE (the local version of the file, of course), I get the error SCRIPT5009: 'WScript' is

Using Python to Automate AutoCAD

只谈情不闲聊 提交于 2020-01-14 03:31:06
问题 I'm very new to Python and AutoCAD so please bear with me. I'm trying to use Python to automate a design cycle in AutoCAD. So far I am able to add points and lines in AutoCAD via Python but I want to be able to change the linetype to a dotted line. I understand that this can be done in the command bar in AutoCAD with a few simple commands but I can't work out how to do it through Python. import array from _ast import If import comtypes.client import pyautocad #Get running instance of the

Check filesize before uploading to file system

♀尐吖头ヾ 提交于 2020-01-14 03:01:31
问题 Just a quick question, I have done a lot of research on this already but I have a different approach. My problem: I have a file uploader that works in all browsers using asp.net with VB. The issue is that our system only allows files to be uploaded that are no bigger than 1mb . Now, using a check on the back-end, It will tell the user if the file is too big, and that they must upload a smaller file. However, the weird problem is that it will catch a file that is 2-3mb over the limit. Not if a