activex

OpenXML SDK getting ActiveX controls value

我与影子孤独终老i 提交于 2020-01-05 07:14:38
问题 For one of my projects in college I had to create a test as a Word document and add some ActiveX forms in it to be completed by another person. After this I had to programmatically extract the answers from it and put a grade on the test. I used OpenXML SDK for processing the document, but it gave me headaches because I couldn't find a way to get the ActiveX values. So what was the solution? 回答1: After searching the Internet and a bit of sniffing on the document I have found that the ActiveX

How do I get IE6 to take ContentType seriously?

别来无恙 提交于 2020-01-05 04:25:35
问题 I'm fighting with a third-party ActiveX control that we are using to load TIFF images into the client browser from an ASP.Net(3.5) web form. The ActiveX control registers itself correctly (as far as I can tell) as the MIME handler for TIFF images and works correctly every time a file is double-clicked locally. However, IE6 and the ActiveX control behave differently depending on a few situations that I've been able to identify so far. EDIT The ActiveX control is not actually in the web page at

Use Flash ActiveX as registration free

Deadly 提交于 2020-01-05 04:18:10
问题 I have a game that uses flash activex component. The problem is I need a specific version of flash. I don't want to register the component over the existing higher version which can cause big security issues. I only want to use it for my application. I've heard about registration free com technology using a manifest file for my application but didn't found any information on using it with flash activex or even its possible. So my question is it possible to us the flash activex component as a

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)): ActiveX and C# Console Application

僤鯓⒐⒋嵵緔 提交于 2020-01-05 02:23:31
问题 So, I am playing around with ActiveX and C# and ways how both of them can work together. the thing is I have hit the wall right in the beginning with mentioned error. Steps I have followed: In VS2010 I selected MFC ActiveX Control project. Then I added a method "SHORT Multiply( SHORT a, SHORT b);" by clicking the Add method option in the menu that pops when you right click _DProjectname under ProjectnameLib in solution explorer. The code for the method is as follows: SHORT

Detecting application hangs with ActiveX controls in .Net

时间秒杀一切 提交于 2020-01-04 14:19:59
问题 I am working on upgrades to a screen scraping application. We are using an ActiveX control to scrape screens out of an IBM mainframe. The mainframe program often hangs and crashes the ActiveX control causing our application to crash. We don't have access to the mainframe or the ActiveX source code. We are not going to write our own active x control. What is the bast way to encapsulate an ActiveX control to detect application hangs with the control so we can kill the process and restart with

how to register the activeX component(.dll) in 64 bit OS

纵饮孤独 提交于 2020-01-04 13:36:51
问题 i create the ActiveX control(.dll) using user control & register as COM component . it working fine in 32 bit OS . but when register the same activeX control in 64 bit os (window server 2008) it throws following exception Could not load file or assembly 'file :////C:\Program Files\STPL\GlobActiveX.dll' or one of its dependencies. an attempt was made to load a program with an incorrect format. i have used the following code to register the dll component filepath=C:\Program Files \STPL

VLC ActiveX in a local webpage with WPF WebBrowser control

 ̄綄美尐妖づ 提交于 2020-01-03 17:09:21
问题 So I try to get working VLC ActiveX v.2 under WPF WebBrowser control and I load it locally. And VLC ActiveX is not working... C# void MainWindow_Loaded(object sender, RoutedEventArgs e) { var file = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "index.html"); using (StreamReader sr = new StreamReader(file)) { String url = sr.ReadToEnd(); wb.NavigateToString(url); } } HTML <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Classic ASP and COM DLL Does not work in Server 2008 R2 (Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object )

久未见 提交于 2020-01-03 13:31:56
问题 I have created a dll in Visual Studios 2010. I have performed the following steps: Given build a strong name by associating a key pair (snk file) to it Given each class an individual ProgID and GUID As it is a 64 bit DLL I made sure that Used the RegAsm.exe located in the 'FrameWork64/v4xxxx' folder. I used RegAsm.exe /codebase ECE2.dll I ran 'gacutil -i' on the DLL All of these steps have been successful. The DLL and the ASP page I am using it on are stored in intetpub/wwwroot. Now, the DLL

Can't Silence Embed Interop Warnings

时光毁灭记忆、已成空白 提交于 2020-01-03 09:24:08
问题 First I've got a third party ActiveX control I need to use. Next I've got to use the stdole library to feed that third party control some images. When I compile under the default settings, I get some warnings: warning CS1762: A reference was created to embedded interop assembly 'c:\Windows\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll' because of an indirect reference to that assembly created by assembly 'XXX\obj\x86\Release\Interop.ThirdPartyControl.dll'. Consider changing the

How to prevent re-entrancy of WPF event handler during ActiveX method call?

一个人想着一个人 提交于 2020-01-03 07:33:30
问题 We're calling methods on an ActiveX component from within a WPF and STA application. This calling is late-bound performed via: res = ocx.GetType().InvokeMember(methodName, flags, null, ocx, args); ...where ocx is the ActiveX object retrieved with the System.Windows.Forms.AxHost.GetOcx() method. This call is performed from within a WPF event handler, say 'mouse clicked'. Now the problem. If we double-click the 'mouse clicked' event will trigger, running InvokeMember(). However, during this