We are using MS Visual FoxPro 9, SP2 in our product. We use the following code to create an OLE Object and open a PDF file before we attach/embed it into the backend database.
= CREATEOBJECT('Form') && Create a Form
.ADDOBJECT("oleObject", "oleAddObject") && Add OLE object
oleAddObject AS OLECONTROL
OLECLASS = "" && Server name DOCUMENTFILE = gcfile && This file must exist OLETYPEALLOWED = 0
With Acrobat Reader 9.4.1, this code works fine. With Acrobat Reader X (v10), we recive the following error when issuing the AddObject command;
OLE error code 0x80040000a: Not able to bind to the source
I have checked the registry and the AcroExch.Document / AcroExch.Document.7 information appears to be registered correctly. I have tried manually re-registering all the DLL's in the Reader folder, with no luck. I have been unable to track down what the root cause of this issue might be. Does anyone have any suggestions?