0 Replies Latest reply on Oct 8, 2012 1:16 AM by Edudant

    Importdata problem with method

    Edudant

      Hi,

      I have problem. This is my code VBA for importing data (xml) to the form. But its bad. Look

       

      Sub test()

       

       

         Dim AcroApp As New AcroApp

             Dim theForma As New AcroAVDoc

         Dim theform As AcroPDDoc

          Dim jso As Object

          Dim text1, text2 As String

       

       

       

       

      theForma.Open "D:\Prih.pdf", ""

      Set theform = theForma.GetPDDoc

      Set jso = theform.GetJSObject

      jso.xfa.host.importData "d:\a.xml"

       

       

         End Sub

       

      First. When I am at step theForma.Open "D:\Prih.pdf", "" I catch this errors

       

      http://i47.tinypic.com/n6ui2w.jpg

       

      http://i47.tinypic.com/n6ui2w.jpg

       

       

       

      and

      http://i45.tinypic.com/2zsuv04.jpg

       

      http://i45.tinypic.com/2zsuv04.jpg

       

       

       

       

      Second: when I come to step jso.xfa.host.importData "d:\a.xml"

      I get error: notallowedError:security settings prevent access to his property of method

       

      I try this  jso.xfa.host.importData "d:\a.xml", False

      but I get error: General error

       

       

       

      Is anybady who knows what is my problem.

      Thank  you