Expand my Community achievements bar.

Getting a form filled by application

Avatar

Former Community Member
Hi,



i have a question about getting a form made by Adobe LiveCycle Designer filled by a application or by different applications.



We provide a form to different people with their own applications, they would like to implement our form, but i dont know if there is something like a libary or something else to get the form filled out of a application.



Perhaps someone has an idea, or can post me a link or what ever....i will be really thankful to any help.



p.s. sorry for the bad english, i couldn't find any good german forum...
1 Reply

Avatar

Former Community Member
Dim field As Object

Dim bOK As Boolean

Dim avDoc As CAcroAVDoc



Sub Acro_Forms()



' Open the sample PDF file

Set avDoc = CreateObject("AcroExch.AVDoc")

bOK = avDoc.Open("C:\Documents and Settings\xxxx\Desktop\" & "Form1.pdf", "MyForm")



'Automation object.

If (bOK) Then

Set formApp = CreateObject("AFormAut.App")

Set acroForm = formApp.Fields

Else

Set avDoc = Nothing

MsgBox "Failed to open PDF Document. Aborting..."

End

End If



acroForm("form1[0].MyForm[0].Field1[0]").Value = "ex"



Set field = Nothing

Set avDoc = Nothing

Set formApp = Nothing



End Sub



Private Sub Command1_Click()

Acro_Forms

End Sub



Have a nice day

ulf.a@dtp-tjanst.se