This post addresses an issue that may have occurred or may occur when using the PDFCreactiveX.dll that hosts the PDFCreator ActiveX control from a .Net application that is built with the C# compiler in Visual Studio 2008 and the .NET 3.5 or with the C# compiler in Visual Studio 2005 after the .NET 2.0 SP1 is installed.
On Windows Vista (or a later OS version) the DEP, Data Execution Prevention, is by default turned on, and this might cause your application to fail to load the PDFCreaciveX.dll. The error message that is given in the exception does not really describe the reason for the exception however. The message may be something like this "Unable to get window handle for the PDFCreator control, windowless ActiveX controls are not supported." The message is misleading.
The MSDN blog post http://blogs.msdn.com/ed_maurer/archive ... piler.aspx described the and offers details on how to resolve the issue for users who have had an ActiveX control they have been using and suddenly were no longer able to use it after updating their system or upgrading to VS 2008.
Keywords:
DEP, Data Excecution Prevention, IMAGE_DLLCHARACTERISTICS_NX_COMPAT, NXCOMPAT, .NET 2.0 SP1, .NET 3.5, VS 2005, VS 2008, Vista, "Unable to get window handle for the control, windowless ActiveX controls are not supported."
Failure to load Amyuni PDF Creactor ActiveX control with DEP
Failure to load Amyuni PDF Creactor ActiveX control with DEP
Amyuni Development Team
Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - https://www.amyuni.com
Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - https://www.amyuni.com