I have Adobe acrobat Standard installed on my system and i want to automate filling a PDF Form.
While doing this am not able to get any of the field names. Here is the peice of code i used, can any one help me out what i need to do?
Set AcroExchApp = CreateObject("AcroExch.App") AcroExchApp.Show Set AcroExchAVDoc = CreateObject("AcroExch.AVDoc") OK = AcroExchAVDoc.Open(Filename,"") Set PDDoc = AcroExchAVDoc.GetPDDoc() Set jso = PDDoc.GetJSObject Set AFormAut = CreateObject("AFormAut.App") Set Fields = AFormAut.Fields 'Set f = jso.getField(FieldName)
For Each Field In Fields FieldName = Field.Name Set f = jso.getField(FieldName) f.value = "Hello"
Here am not able to enter into the loop.
One more thing when ever i get Field name using Field.Namemethod i want to high light that particular field. Is any one has any kind of method for highlighting all the fields.