Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Closing an open PDF
#1
Solved: 11 Years, 3 Months ago
What ise wrong with: **

Code:
Set AcroAVDoc = CreateObject( "AcroExch.AVDoc" )

' Open the PDF
If AcroAVDoc.Open( gPDFPath, "" ) Then
        If AcroAVDoc.IsValid = False Then ExitTest()
        AcroAVDoc.BringToFront()
        Call AcroAVDoc.Maximize( True )
        Set AcroPDDoc = AcroAVDoc.GetPDDoc()
        PDFName = AcroPDDoc.GetFileName()
        PDFPageCount = AcroPDDoc.GetNumPages()
End If

'** NONE OF THE BELOW CLOSE THE PDF

Code:
AVDoc.CloseAllDocs()  
AVDoc.Exit()          
                      
AcroAVDoc.CloseAllDocs(
AcroAVDoc.Exit()      
                        
AcroExch.CloseAllDocs()
AcroExch.Exit()  
      
Set AcroApp = Nothing
Set AcroAVDoc = Nothing


WHAT AM I DOING WRONG? (I think I made a mess of this)
Reply


Messages In This Thread
Closing an open PDF - by mv8167 - 08-15-2012, 09:37 PM
RE: Closing an open PDF - by ravi.gajul - 08-19-2012, 12:00 PM
RE: Closing an open PDF - by mv8167 - 08-21-2012, 12:22 AM
RE: Closing an open PDF - by ravi.gajul - 08-21-2012, 01:45 AM
RE: Closing an open PDF - by mv8167 - 08-23-2012, 07:09 PM
RE: Closing an open PDF - by ravi.gajul - 08-23-2012, 10:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,504 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
  When QTP is open am not able to open my AUT. chetan3987 2 3,079 02-12-2014, 01:18 AM
Last Post: supputuri
  recovery scenario for closing a message box itself ashima 0 2,223 12-26-2013, 11:10 AM
Last Post: ashima
  closing browser at end bistritapcv 3 6,132 04-12-2013, 07:21 AM
Last Post: basanth27
  closing the browser diya 3 3,571 11-27-2012, 10:14 PM
Last Post: diya

Forum Jump:


Users browsing this thread: 1 Guest(s)