importXFAData stopped working with Acrobat Pro DC
Using PDF XFA forms created with Adobe LiveCycle Designer ES4. Data stored in a Microsoft Access database is converted to an XML file and then imported into a blank PDF XFA form using importXFAData. My workgroup has been using this feature for over three years with huge success/satisfaction.
VB code clip:
Dim AcroApp As Object
Dim theForm As Object
Dim jso As Object
Set AcroApp = CreateObject("AcroExch.App")
Set theForm = CreateObject("AcroExch.PDDoc")
theForm.Open myBlank 'open the blank PDF form with path=myBlank
set jso = theForm.GetJSObject
jso.importXFAData myFile 'import the xml file located at path=myFile
