.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

ActiveX component not displayed in WPF

Posted By:      Posted Date: October 12, 2010    Points: 0   Category :WPF

Hello guys,

I need to display a PDF file inside of my application in Adobe's ActiveX coponent. In addition, I need to put it in my custom control. I use WindowsFormsHost to do this:

<WindowsFormsHost x:Name="WinFormsHost" Margin="1">
  <ctrl:PDFViewer x:Name="pdfViewer" />

And this is the source code of my PDFViewer class (there is a AxAcroPDF named axAcroPDFView contro

View Complete Post

More Related Resource Links

Accessing ActiveX Component functionality from SSIS

Hi I have my SSIS Package, from which I need to access the functionality of an external application.  The external application have an API exposed in form of ActiveX Component.  I have to access that ActiveX components. Now, how to have that ActiveX components exposed to my SSIS package? What are the steps to access that ActiveX component ? Request you to reply at the earliest as this is a critical requirement.  Please note that I am very new to SSIS technology.  

Activex component not showing up in toolbox


I wish to have an ActiveX component on my webpage. When I choose Item and add the COM object, the control is not added on the toolbox? How Can I manually add the activeX component.

Creating 64-bit interop dlls from an ActiveX component

Hi there,

I have generated a 64-bit version of an old ActiveX component. I now need to create the appropriate interop dlls to be able to use this component from some managed code. Here's what I've tried:

> tlbimp myDll.ocx /out:myDllInterop.dll /machine:x64

This generates the error:
TlbImp : error TI0000 : A single valid machine type compatible with the input type library must be specified

From this error, it appears that I might not have a 64-bit activeX component. But when I check it using DependencyWalker, it says it IS a 64-bit dll. Is it possible that the typelib info inside the ocx is only 32-bits. If so, how can I verify that? OleView doesn't give me enough info about the bit-ness of the tlb. And more importantly, how can I force a 64-bit typelib info to be embedded inside the ActiveX control?

I've also tried aximp, but it doesn't seem to have any option to specify a target machine type at all

Do I have to write my own tlbimp/aximp using the TypeLibConverter class? Can anyone point me in the right direction please?

calling CreateObject from web service...getting exception: Cannot create ActiveX component


I have created a web service in VB 2005 and this ws calls CreateObject to access an api. I can successfully call CreateObject from an application but not the web service(using the same code). I get the following error:


System.Exception: Cannot create ActiveX component.
   at Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName)

   at WebServicePAM.getPositionData.getPamString() in  c:\inetpub\wwwroot\WebServicePAM\App_Code\getPositionData.asmx.vb:line 60


WebServicePAM is the web service.


I appreciate any suggestions. I have gone through the IIS settings and but have not been able to make any changes that will allow me to call CreateObject successfully.




ActiveX component can't create object error when trying to connect Analysis Server


I'm current on a SQL 2000 Standard Edition enviroment and when I launch the Analysis Server Manager, the Analysis Servers/database has a red box. I right-click, select connect and I get an error displaying:

"ActiveX component can't create object"


can someone point me to an article or a solution for this error.

grately appriciate it, thank you,


ActiveX component can't create object: 'Scripting.FileSystemObject'



I have a problem, on classic asp website.

This line of code is raising an error

Set objFile= CreateObject("Scripting.FileSystemObject")

This is the error

Microsoft VBScript runtime error '800a01ad'

ActiveX component can't create object: 'Scripting.FileSystemObject'

My System

Windwos Server 2003 SP 2

The application pool for this website is using a user with administrator rights.

I already reinstalled Windows Script 5.7 for Windows Server 2003 and restarted the server.

Crystal reports 8 is installed on the server, I read some articles that said Crystal reports 8 could be the problem, buy they dont't say how to solve it.

I have installed RegMon as requested on this article but has been useless, can't find anything.



Stupid ActiveX problem on a Webserver


 I have developed an asp.net website that uses an old activex.exe control.

The website works fine when someone is logged in on the server, but gives the following error when no one is logged in on the server :

Unable to cast COM object of type 'Proxyticketserver.TicketingClass' to interface type 'Proxyticketserver._Ticketing'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{848607B6-A467-4F40-9450-E543EDDE7080}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

Anyone any idea?





Error Registering COM+ Component

Hi All,

I am experimenting with using EnterpriseServices. I created a component, created the SNK file, compiled the DLL. In the assemblyinfo.vb file, I added '<Assembly: AssemblyKeyFile("c:\key.snk")> '.
I created a new package in COM+, When I attempt to add the .dll to the package i get:

An error occured while processeing the last operation.
Error Code 80020009 - Exception ocurred.

The eventlog may contain additional troubleshooting information.

Here is the Event log:

Installation of 'TransactionalComponentsCore.dll' into '{6367F5F1-56A7-4223-97AC-51F7DC1D53EB}' failed with an exception:

System.EnterpriseServices.RegistrationException: Could not install type library 'TransactionalComponentsCore.tlb' into application 'TransactionalComponentsCore'.

Server stack trace:
at System.EnterpriseServices.RegistrationDriver.InstallTypeLibrary_W2K(ApplicationSpec spec)
at System.EnterpriseServices.RegistrationDriver.InstallTypeLibrary(ApplicationSpec spec)
at System.EnterpriseServices.RegistrationDriver.InstallAssembly(RegistrationConfig regConfig, Object obSync)
at System.EnterpriseServices.RegistrationHelperTx.InstallAssemblyFromConfig(RegistrationConfig& regConfig, Object sync)
at Sys

Windows with C++: Windows Imaging Component Basics


Windows Imaging Component (WIC) is an extensible framework for encoding, decoding, and manipulating images. See how to use WIC to encode and decode different image formats.

Kenny Kerr

MSDN Magazine April 2008

Toolbox: Code Generation, A Charting Component, and More


Developers have a number of tools at their disposal, but which of these components do you really need to complete your project? Each month we'll analyze the latest software and books to see if they merit inclusion in your toolbox.

Scott Mitchell

MSDN Magazine January 2006

Cryptography: Employ Strong Encryption in Your Apps with Our CryptoUtility Component


When storing sensitive data, you need to be able to identify threats, determine how these threats interact with each other, and how issues can combine to constitute a vulnerability that will leave your data exposed. With a good understanding of the various cryptographic algorithms, salt, hashes, ACLs, and other available techniques, you'll be in a better position to protect your critical data.

Michael Stuart and J Sawyer

MSDN Magazine November 2004

ActiveX and Visual Basic: Enhance the Display of Long Text Strings in a Combobox or Listbox


The combobox and listbox controls in Visual Basic have no built-in support for displaying text strings that are too long to fit in the visible area of either control. This article describes several techniques to improve the readability of long strings in each control. The first technique uses tooltips to display a combobox or listbox item. The other techniques, which use various Windows APIs, include adding a horizontal scrollbar for a listbox and determining the necessary width of the longest string given the font attributes of the text. The required steps are described for both comboboxes and listboxes.

John Calvert

MSDN Magazine December 2000

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend