SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Apprentice
    Join Date
    May 2008
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Object is not getting Created for AcroExch.PDDoc

    Hi,

    As i am trying the following programing, it is throughing an error saying that object cant be created for AcroExch.PDDoc. Please correct me where i was wrong. I m using acrob 6.0 and qtp 9.0


    Function GetNumPagesInPDF(FileName)
    Dim oPDFDoc
    Set oPDFDoc = CreateObject( "AcroExch.PDDoc" )

    If oPDFDoc.Open( FileName ) Then
    GetNumPagesInPDF = oPDFDoc.GetNumPages()
    Set oPDFDoc = Nothing
    Else
    GetNumPagesInPDF = -1
    End If
    End Function


    numPages = GetNumPagesInPDF("C:\Program Files\Mercury\QuickTest Professional\help\QTUsersGuide.pdf")
    MsgBox "Number of pages: " & numPages

    Thanks in Advance

  2. #2
    Member
    Join Date
    May 2008
    Location
    Beaver Dam, WI USA
    Posts
    72
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object is not getting Created for AcroExch.PDDoc

    Do you have the full version of Acrobat Professional installed. This is the only way that AcroExch.PDDoc will work, but then again I'm not sure if it works with Acrobat 6.0 either. That may be your problem, if you are looking at the pdf document from advancedQTP it states in there that you need the full professional version to make it work.
    http://www.advancedqtp.com/wp-conten...sing%20PDF.pdf

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:15 AM.

Copyright BetaSoft Inc.