1 Reply Latest reply: Dec 2, 2010 1:50 PM by jbowmansunmaid RSS

    OLE error code 0x80040000a: Not able to bind to the source

    ggrewe_IPS Community Member

      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.

       

      = GETFILE()

      gcfile

       

      = CREATEOBJECT('Form') && Create a Form

       

      frmOLEForm

       

      .ADDOBJECT("oleObject", "oleAddObject") && Add OLE object

      frmOLEForm

       

      oleAddObject AS OLECONTROL

      ...

       

      DEFINE CLASS

           OLECLASS = "" && Server name DOCUMENTFILE = gcfile && This file must exist OLETYPEALLOWED = 0

          

          

       

      ENDDEFINE

       

      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?