Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7504015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:25:41+00:00 2026-05-29T21:25:41+00:00

I need to validate a particular content from the PDF using QTP . How

  • 0

I need to validate a particular content from the PDF using QTP. How I can get the content from the PDF into the string Using QTP/VBScript. So that, I can validate the content in the PDF.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:25:42+00:00Added an answer on May 29, 2026 at 9:25 pm

    Do visit Here. You will get your answer, this is one of the menthod to work with PDF in QTP. You can also fetch data from PDF by passing Keys i,e, Ctrl+a then Ctrl+c then copy this data to Clipboard & use this data for comparing with your standard data

    Sample Function For Getting data from PDF, When PDF report is open in Broweser whose creation time is passed in datatable

    Public function CopyPDFData(sDestinationFile)       
    Dim clip, strText, nCT, fso
    
    nCT = DataTable("bPDFCreationTime", dtLocalSheet)
    If nCT =""  Then nCT=1
    Browser("CreationTime:=" & nCT).Sync
    
    Browser("CreationTime:=" & nCT).FullScreen            
    wait(2)
    Browser("CreationTime:=" & nCT).WinObject("object class:=AVL_AVView", "text:=AVPageView").Type micCtrlDwn + "a" + micCtrlUp
    wait(4)
    Browser("CreationTime:=" & nCT).WinObject("object class:=AVL_AVView", "text:=AVPageView").Type micCtrlDwn + "c" + micCtrlUp
    wait(4)
    
    Set clip = CreateObject("Mercury.Clipboard" )
    strText = clip.GetText
    clip.Clear
    
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set strfile = fso.CreateTextFile(sDestinationFile, True) 
    strfile .Write  strText
    strfile .Close
    Browser("CreationTime:=" & nCT).sync
    Browser("CreationTime:=" & nCT).close
    End Function
    

    Let me know if this solves your problem, there are also other alternatives for PDF Report testing using QTP

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to validate an XML string (and not a file) against a DTD
I need to validate a basic authorization header that is being sent to my
I have several option that a user can have, mainly to validate his presence
I need validate multiple fields in the JavaScript Framework, but can't figure out how.
I need to validate measurements entered into a form generated by PHP. I intend
I need validate the given input String is a valid Timestamp in milliseconds. For
i need to validate address1 , address 2 and city using jquery regex.. Used
I'm looking for a plugin for jQuery that can validate as a key is
How can you get a user token from Logonuser for a user account with
I have a regex issue that I need help with. Its trying to validate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.