[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Acrobat Reader

Hello,

I'm trying to embed an Acrobat Reader in an Eclipse application on Windows XP. I tried the example from IBM's article about ActiveX controls in SWT [1].

It works with Eclipse 3 , but only if I have installed Acrobat 5. The following line is used to create the Control:

  site = new OleControlSite(frame, SWT.NONE, "PDF.PdfCtrl.5");

In some forum I found out that one have to use "PDF.PdfCtrl.6" and "AcroPDF.PDF.1" for Acrobat Reader version 6 and 7 respectively. But it does not work with any of these three IDs. The following Exception is thrown:
org.eclipse.swt.SWTException: Class ID not found in registry result = -2147221005


Is this a problem with SWT or is the Class ID incorrect?

Regards,
Peter

[1] http://www-128.ibm.com/developerworks/library/os-activex/