I found the following sample code which should allow me to populate a PDF form field from VB6.
When I run this code I get "Error 424: Object Required" on the "Set objField = jso.getField("TextField1")
" line of code. The field I'm trying to populate is TextField1. I confirmed that field is the proper name on my PDF form. I added a reference to Adobe Acrobat 7.0 Type Library. I'm using Adobe Designer v7 to create my form. I've seen other questions similar to this but none have really helped. Any advice on how to correct this issue or sample code someone can share is greatly appreciated.
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim jso As Object
Dim objField As Object
Set gApp = CreateObject("AcroExch.App")
Set gPDDoc = CreateObject("AcroExch.PDDoc")
If gPDDoc.Open("Path") Then
Set jso = gPDDoc.GetJSObject
Set objField = jso.getField("TextField1")
Set objField.Value = "value"