How can we upload pdf files in qtp?



How can we upload pdf files in qtp?..

Answer / jeettu

Download ADOBE APTT plugin.
access the PDF file with its object model, for this u should have Acrobat installed in ur machine.
Find the sample example below.
Dim gApp, gPDDoc, jsoSet
gApp = CreateObject( "AcroExch.App" )1
Set gPDDoc = CreateObject( "AcroExch.PDDoc" )
If gPDDoc.Open( "c:MyPdfFile.pdf" ) Then
Set jso = gPDDoc.GetJSObject()
jso.console.Show
jso.console.Clear
jso.console.println ( "Hello, Acrobat for QuickTest!" )

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is diff between SDLC AND STLC?

1 Answers   Nokia,


how to test load test and block box testing an a web based application pls give ans briefly

0 Answers   Impiger,


How many tabs are available in debug viewer pane?

0 Answers  


What is dynamic arrays

1 Answers   Patni,


How you are maintaining shared object repository in your team or your project?help me plz

1 Answers   CTS,






hi i have one doubt is there any companies are taking correspandence courses plz leme know urjent

2 Answers  


How we can merge the object repositories?say if we have 2 or 3 object repositories then how we can merge them?Is there any option in QTP to merge the object repositories?

2 Answers  


1.what is test automation life cycle?

1 Answers   IBM,


hi everyone today is the first time i saw this website,and hi iam siraj,iam very impressed by seeing evryones response towards questions,iam a newcomer and i have got tryining in testing can anyone please send me some projects relaited to testing.i know it is very confidential but still if u send it will a great help. my mail id venku_krs@yahoo.co.in

1 Answers  


Thanks Rag... One more question, How we test the dynamic images which frequently changed?Using the bitmap checkpoint r any other options available.... Can u give the steps pls... Thanks

1 Answers  


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

0 Answers  


how to choose the framework in qtp ? 2)when we go for the descriptive programming ?

2 Answers   Syntel,


Categories