activex

Writing UTF8 text to file

◇◆丶佛笑我妖孽 提交于 2019-12-17 14:54:58
问题 I am using the following function to save text to a file (on IE-8 w/ActiveX). function saveFile(strFullPath, strContent) { var fso = new ActiveXObject( "Scripting.FileSystemObject" ); var flOutput = fso.CreateTextFile( strFullPath, true ); //true for overwrite flOutput.Write( strContent ); flOutput.Close(); } The code works fine if the text is fully Latin-9 but when the text contains even a single UTF-8 encoded character, the write fails. The ActiveX FileSystemObject does not support UTF-8,

ActiveX - Automation Server Can't Create Object

时间秒杀一切 提交于 2019-12-17 11:47:32
问题 I have a web page from which I need to send an email to. I need to send a LARGE email from the browser. Because the content is larger than the query string allows, I need to rely on Active X. I want to send this email through Outlook. In an attempt to do this, I've written the following code: try { var to = ""; var cc = ""; var subject = "Action Required"; var body = GenerateEmailBody(); var outlook = new ActiveXObject('Outlook.Application'); var outlookNamespace = outlook.GetNameSpace('MAPI'

Read and write to an access database using Javascript

﹥>﹥吖頭↗ 提交于 2019-12-17 10:33:49
问题 first I want to mention that I am aware that in web interaction with databases should always be with server side languages due to security reasons and for the fact that javascript as is doesn't offer and compatibility with the windows file system. that said I am facing a though situation and I am trying to think creatively. I am not allowed any access to a server sided scripting and SQL. and I need to create a client based application for an intranet that will be able to store data as time

ActiveX, installation doesn't work

风流意气都作罢 提交于 2019-12-17 07:51:44
问题 I want to create and deploy an ActiveX plugin, somethign really small. I just want to display a message box. I've created a library project for it and compile it to a DLL. The plugin works when I register the dll via command line ( regasm ) on one machine. So I now need to create an installer, put it inside a CAB file and sign it. I've installed Visual Studio 2008 to use Setup Project project (but I can use the InstallShield from 2010+ if anyone can explain how to do it). I add my dll to the

ActiveX, installation doesn't work

微笑、不失礼 提交于 2019-12-17 07:51:19
问题 I want to create and deploy an ActiveX plugin, somethign really small. I just want to display a message box. I've created a library project for it and compile it to a DLL. The plugin works when I register the dll via command line ( regasm ) on one machine. So I now need to create an installer, put it inside a CAB file and sign it. I've installed Visual Studio 2008 to use Setup Project project (but I can use the InstallShield from 2010+ if anyone can explain how to do it). I add my dll to the

How to read web.config APP key settings in HTML markup

≯℡__Kan透↙ 提交于 2019-12-14 03:39:26
问题 I have an ASP.NET site which uses a 3rd party activeX control. I have to pass a few parameters to the OBJECT tag in the HTML page. If i hardcode these parameters into the HTML everything works. I would like to place the parameters in my web.config with app settings "key/value" pairs. My problem is i cannot read the app key setting in the HTML markup to succesfully pass them in as parameters. I can read them fine from server side code behind. What's the correct way to read these settings in

How to extend CAxHostWindow?

霸气de小男生 提交于 2019-12-14 01:28:48
问题 Standard class CAxHostWindow that used by ATL for COM ActiveX hosting does not support interface IDocHostUIHandler2. How can i to extend CAxHostWindow class for IDocHostUIHandler2 supporting? 回答1: Actually, there's a way to customize CAxHostWindow without modifying it. E.g, I wanted to implement IOleCommandTarget on the client site object. The tricky part was to override the creation of the host window. Here's how it can be done: class ATL_NO_VTABLE CWebBrowserHost : public CAxHostWindow,

how to load the text in another textarea where the textarea is within iframe

旧城冷巷雨未停 提交于 2019-12-13 23:16:25
问题 in the below code plz tell me how to load the text in textarea where the textarea path is parent.frame_name1.iframe_name1.form_name1.textarea_name1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Local File I/O</title> <script type="text/javascript"> <!-- // Begin var ForReading = 1, ForWriting

ActiveX: Get values from ActiveX

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 17:47:03
问题 I have ActiveX control which helps me to drag and drop desktop and outlook attachments into ActiveX control, I have implemented this on my ASP.NET Webpage which gets dropped items to the control, now i want to access those dropped items/files into the ActiveX control. How to access items from ActiveX control? Here is my ActiveX <object id="Draggable" height="200" width="350" classid="CLSID:D43D0F1F-785F-472F-9845- 195A769D56A8" codebase="Draggable.DLL"> </object> Note: Security is not a

ActiveX freezes IE

ぃ、小莉子 提交于 2019-12-13 17:27:06
问题 I created an activeX control to perform some actions, which take about 1 minute. During this action IE freezes completely. Is there a way to call the activeX control so that IE does not freeze? Thank you 回答1: This is a threading issue dealing with IE, so I don't think there is any way to do this. 回答2: You would have the same problem in any ActiveX host, not just IE. If you don't want to block the UI thread, then you need to change your ActiveX control to do its work on a secondary thread. 回答3