Micro Focus QTP (UFT) Forums
Automation of PDF Forms with Adobe Reader - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Automation of PDF Forms with Adobe Reader (/Thread-Automation-of-PDF-Forms-with-Adobe-Reader)



Automation of PDF Forms with Adobe Reader - AjayW - 03-10-2014

I am facing some issues with the automation of Pdf forms. the issue is the Adobe reader hangs while setting values to objects( Mostly on List Object). QTP is able to identify the Objects and execute the scripts but Reader hangs at random object while setting the value.
I have below setUp.
QTP -11
APTT AcroQTP Addin - 10.1.2.45
Adobe Reader - 10.1.4

Code:
PDFDoc("xx").AcroXFAForm("xx").AcroXFAForm("xx").AcroXFAListBox("Obj1").Select
If PDFDoc("xx").AcroXFAFormx("xx").AcroXFAForm("xx").AcroXFAListBox("Obj1").Exist(3) Then
    PDFDoc("xx").AcroXFAForm("xx").AcroXFAForm("xx").AcroXFAListBox("Obj1").Setvalue "ajayW"
End If

Note: -I can't use any more older version of Adobe Reader

Please guide me to resolve this issue.


RE: Automation of PDF Forms with Adobe Reader - AjayW - 03-12-2014

Just for info :- Exists() statement always return True for AcroQTP Object. So we can't use this for sync/Existance purpose.
The alternative option is to use GetRoProperty("afpid") and check , If it returns 0 means the Object does not Exist.


RE: Automation of PDF Forms with Adobe Reader - sreekanth.peetla - 03-13-2015

I am facing some issues with the automation of Pdf forms. I have installed Adobe 11 and qtp 10, but qtp is not identifying the pdf objects it is identifying as winobject. can you please help me .
QTP -10
APTT AcroQTP Addin - 10.1.2
Adobe Reader - 11

Sreekanth Peetla
8008919992


RE: Automation of PDF Forms with Adobe Reader - AjayW - 03-13-2015

I have used below combination and it was working fine.

QTP Version - 11
AcroQTP Version - 10.2.1.45
Adobe Version - 10.1.4

Sometimes your system firewall/Configuration/policy can restrict identification of objects.