activex

C# UDP Socket client and server

喜欢而已 提交于 2019-11-26 19:38:41
问题 My first question here. I am new to this kind of programming, and i've only programmed .NET web sites and forms. Now, the company I work at, asks me to make an ActiveX component, that listens to UDP messages, and turns them into events. The UDP msgs are send from Avaya system, so i was told that to test my ActiveX, at first I need to create an app, that only sends UDP (only one button that sends pre-defined UDP string). And then create listener socket, ordinary C# app, that will get those

C# COM DLL: do I use Regasm, or Regsvr32?

孤者浪人 提交于 2019-11-26 19:19:54
问题 I am building a C# ActiveX DLL... do I use REGASM or REGSVR32 to register it? How do I register the 64-bit interface vs the 32-bit interface? 回答1: You need to use regasm.exe to register both the 32 bit and 64 bit interfaces I believe you need to run each of the regasm.exe 's in: C:\Windows\Microsoft.NET\Framework\v2.0.50727 and C:\Windows\Microsoft.NET\Framework64\v2.0.50727 So... in your case you need to run the regasm.exe in the Framework64\v2.0.50727 folder. Here's an example we use to

Print directly from browser without print popup window [duplicate]

五迷三道 提交于 2019-11-26 18:50:44
This question already has an answer here: Automatically Print Image from Website 9 answers As it said in the subject I've to create a feature for a web-based application that will allow users to send print directly without prompting any dialog boxe just make the print i.e click and print, simple! but not for me :(. Please, suggest what would be the best option and how should I write it up (technology). Suggest please! Thanks. EDIT: The print should be send on the user's default printer. I couldn't find solution for other browsers. When I posted this question, IE was on the higher priority and

Deploy C# ActiveX in a CAB for Internet Explorer use

社会主义新天地 提交于 2019-11-26 17:39:25
问题 I am desperately trying to deploy an ActiveX for IE developed in C# as a CAB archive. I have read many resources (some of them from StackOverflow) and it appears a lot of people are having the same problems. I have tried 3 solutions: a) creating a CAB VS project, b) manually creating a CAB using CABARC with a COM registration in INF and c) manually creating a CAB with launching msiexec . None of them worked. I even tried d) creating a bootstrapper which launches msiexec to no avail (because

How to stop ActiveX objects automatically changing size in office?

↘锁芯ラ 提交于 2019-11-26 16:59:44
问题 This thread discusses a problem I've been having with ActiveX objects in an Excel spreadsheet. It's a mess to read through and ultimately doesn't have a cohesive answer. The problem is 100% reproduceable: Open workbook with ActiveX objects in spreadsheet while using a docking station Disconnect machine from docking station, triggering a resolution change (there are other causes too, mine is with a docking station, it seems changing resolution causes this) Click an ActiveX control - they

create a text file using javascript

核能气质少年 提交于 2019-11-26 16:39:26
问题 I am using the following code to create a text file using javascript and it's not working <html> <head> <script language="javascript"> function WriteToFile() { var txt = new ActiveXObject("Scripting.FileSystemObject"); var s = txt.CreateTextFile("11.txt", true); s.WriteLine('Hello'); s.Close(); } </script> </head> <body onLoad="WriteToFile()"> </body> </html> 回答1: Try this: <SCRIPT LANGUAGE="JavaScript"> function WriteToFile(passForm) { set fso = CreateObject("Scripting.FileSystemObject");

How can I make an ActiveX control written with C# raise events in JavaScript when clicked?

余生长醉 提交于 2019-11-26 14:24:28
问题 I'm seeing a few questions related to this on SO already, but I think mine is sufficiently different to not be considered a duplicate (if I'm wrong let me know). I have an ActiveX control I've written in C# and while I have it mostly working, I want to raise an event in JavaScript when it's clicked (it displays an image so it's a visual element on the page). The end goal of what I'm looking to accomplish is no different than if it were a <span> tag and it had an onclick event to raise a

What can you do with COM/ActiveX in Python? [closed]

一笑奈何 提交于 2019-11-26 12:02:51
问题 I\'ve read that it is possible to automate monthly reports in Crystal Reports with COM/ActiveX. I\'m not that advanced to understand what this is or what you can even do with it. I also do a lot of work with Excel and it looks like you also use COM/ActiveX to interface with it. Can someone explain how this works and maybe provide a brief example? 回答1: First you have to install the wonderful pywin32 module. It provides COM support. You need to run the makepy utility. It is located at C:\...

opening Outlook through javascript

白昼怎懂夜的黑 提交于 2019-11-26 11:39:25
问题 Does anyone know how to open Outlook using Javascript? I am getting an exception (in IE6) while using this code: var outlookApp = new ActiveXObject(\"Outlook.Application\"); 回答1: You can definitely do this, the code looks like: var objO = new ActiveXObject('Outlook.Application'); var objNS = objO.GetNameSpace('MAPI'); var mItm = objO.CreateItem(0); mItm.Display(); mItm.To = p_recipient; mItm.Subject = p_subject; mItm.Body = p_body; mItm.GetInspector.WindowState = 2; p_recipient, p_subject & p

IE11 prevents ActiveX from running

核能气质少年 提交于 2019-11-26 11:18:35
问题 Our web browser plugin works fine in IE9 and IE10 but in IE11 the plugin is neither recognized as an add-on or allowed to run. It\'s as if IE11 no longer supports ActiveX. Surely there is a workaround but what do we need to change? NOTE: this questions is asked as the developer of the plugin and not the end-user who might need to correct IE settings! 回答1: IE displays a active x warning and ask for permission if you allow it to run or not. To overcome this the only solution is to; Open