I recently developed a program that took a PDF form (state required) and populated the fields and emailed the form. The problem has arisen that it works in Adobe Acrobat up until version 7.0.In 7.0 Professional, it fails.
Snippet of code is:
Dim AcroApp As Variant
Dim AVDoc As Variant
Dim AcroPDDoc As Variant
Set AcroApp = CreateObject "AcroExch.App")
Set AVDoc = CreateObject("AcroExch.AVDoc")
AcroApp.Show
AVDoc.Open filename,""
Set AcroForm = CreateObject("AFormAut.App")
Set AcroFields = AcroForm.Fields
Set AVDoc = AcroApp.GetActiveDoc
Set AcroPDDoc = AVDoc.GetPDDoc
....go thru selected docs and set AcroFields.item values
....
....clean up and close AcroExch objects
It is failing when I call Set AcroFields = AcroForm.Fields in 7.0 (but not in other versions)
My questions are: Is this command not included in the AcroForm.api for version 7.0?
and will getting the sdk kit fix it?
Never done anything with AcroExch before so I am very new and hate to tell this client to purchase the sdk kit if it will not fix the problem.
ANY help is appreciated. I have already search the web, but most sites require you already have the developer license to post a question. Thank goodness we still have a forum that’s free!