Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Save an Open PDF file
#1
Not Solved
I have an open PDF file that became this way by selecting a link. Now I need to safe the PDF to gPDFPath. I cannot seem to figure out how to Set an open PDF, Save it and then Close tyhe doc

Code:
gPDFPath = "O:\QTP Tests\NightlyRegressionTesting\Results-PDFandZIP\" & ReportName & "-" & TodaysDate & ".pdf"

'Set AcroAVDoc = CreateObject( "AcroExch.AVDoc" )
AcroAVDoc.Save(PDSaveFull, gPDFPath)
AcroAVDoc.CloseAllDocs()
AcroAVDoc.Exit()
Set AcroAVDoc = Nothing

Any kins suggestions?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  unable to open file-new functionlibrary sirim 2 1,941 03-03-2017, 12:22 PM
Last Post: vinod123
  Extract and save a file from zip folder using VB Script karthicksri07 1 6,449 06-29-2016, 02:19 PM
Last Post: Ankesh
  How to Export run result viewer with CAPTURED DATA and save it in PDF,or Doc,or HTML akhandesh 0 2,973 07-16-2015, 06:03 PM
Last Post: akhandesh
  Getting an error to open UFT using vbs file Naresh 1 5,430 06-11-2015, 06:34 PM
Last Post: venkatesh9032
  Unable to Save a file in UFT 12.0.2 (Sequence contains more than one matching elemen) noeldsouza89 0 2,655 02-02-2015, 03:03 PM
Last Post: noeldsouza89

Forum Jump:


Users browsing this thread: 1 Guest(s)