End Google Ads 201810 - BS.net 01 -->
I am able to get Adobe Acrobat working inside a java JInternalFrame.
However, most of our users don't have a license nor need for Acrobat.
I am trying to get the Adobe Reader ActiveX control to work in java.
I created the "MFC from ActiveX" using the "Adobe PDF Reader " control and it is called CAcroAXDocShim by default.
So I create:
CAcroAXDocShim *shim = new CAcroAXDocShim();
I have tried this:
Embed ActiveX controls inside Java GUI[^]
However, hwndChild is always returned as NULL.
It seems like the real problem is the java window which was returned by the JAWT_Win32DrawingSurfaceInfo does not have the ActiveX/OLE controls initialized.
So I tried this:
shim->SubclassWindow( dsi_win->hwnd )
That still fails.
I have also tried this:
Adobe ActiveX Control with MFC[^]
However, I have to render the ActiveX control within an existing java awt component (i.e. an existing HWND). It unfortunately can't create a new Frame.
Is there any way to initialize the HWND returned by the native java awt libraries with ActiveX/OLE support?
Or... better yet... anyone know how to get an ActiveX control like Adobe Reader to display in java?
(perhaps I'm overlooking something; any guidance/comments would be appriciated.)
مواقع النشر (المفضلة)