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

How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric

0 Answers  


i need the word "good morning" to be displayed by default whenver we click upon the blank test while opening the qtp. Could you please answer...

7 Answers  


What is the difference between low level recording and analog recording mode when it will be enabled.

5 Answers   Ordain Solutions,


It is regarding VBScript, how to export our function results to ExcelSheet through VBscripting. Ex: I have written add function, that result should export to Excel.

3 Answers  


if devloper change only button names in present build then script will execute or not , why? Only gui changed.......

2 Answers   Cap Gemini,


how to call multiple scripts in QTP at a time

3 Answers   IBM,


How will you handle java tree in qtp?

0 Answers  


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

0 Answers   Wipro,


This is Ajay i have few douts if anybody know pls give me reply. 1. i have opend 2 gmails i am working with 1 gmail i want to close other gmail by usig script. 2.i have 10 links in a page all of them have same properties& names i want to click on 5link by using script. 3.i have one combobox in that i want to see all the citynames in the combobox and i have to check weather hyderabad is present or not. 4. size of objectrepository. 5.what r problems we get during writing the script. 6.is it possible to compare to excel sheets in qtp if possible wht is the script. 7.example for lowlevelrecording

3 Answers   Symantic Space,


where do you store the test result?

2 Answers   HCL,


How can we close all webbrowsers which are opened in out desktop?

3 Answers  


What is operator in VB Script?

1 Answers   IBM,


Categories