in reply to Win32::OLE Access Acrobat file menu?
or this vb Save Current PDF File Using OLE in VB Application# Save as PDF $Excel->ActiveWindow->SelectedSheets->PrintOut({ Copy => 1, ActivePrinter => 'Acrobat PDFWriter'}); # Save as Excel $Book->SaveAs({Filename =>'C:\report\results\check_all.xls', FileFormat => xlWorkbookNormal}); $Book->Close(); $Excel->Quit();
Might be easier if you used an ole browser to see adobe APISet AcroExchApp = CreateObject("AcroExch.App") Set AVDoc = AcroExchApp.GetActiveDoc Set PDDoc = AVDocTarget.GetPDDoc If PDDoc.Save(PDSaveFull, "c:\test.pdf") = False Then MsgBox "Unable to save image" Else: MsgBox "The file is saved"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::OLE Access Acrobat file menu?
by cormanaz (Deacon) on Jan 30, 2009 at 16:07 UTC |