Shell with acrobat reader

cmatni

Registered User.
Local time
Yesterday, 21:04
Joined
Dec 11, 2006
Messages
19
Hello,
i used in one my acces forms a shell code to open a certain pdf file, but i need the right code to print that document , is ANYONE know that code, thanks a lot
 
Here's an example:

'--------------------------------------------------------------------------
' Procedure : testShell_Acrobat
' DateTime : 1/10/2007 22:04
' Author : jed
' Purpose : This is a sample of Call Shell to start a job (screen maximized).
' tested
'--------------------------------------------------------------------------
'
Sub testShell_Acrobat()


Dim strProg As String
Dim strFile As String

strProg = "d:\Program Files\Adobe\Acrobat 6.0\Reader\acroRd32.exe"

strFile = "E:\Linksys_WRT54GR_Manual\wrt54gr-ug.pdf"

'Where strFile is the complete path to the file you want to open
' and strProg is the complete path to the acrobat reader program

Call Shell(strProg & " " & strFile, vbMaximizedFocus)

End Sub
 
Jdraw provided code that will open it. To print it, use the "Adobe Acrobat x.0 Type Library" reference (located in Tools | References in the VBA code window). From there, you can connect to Acrobat and do whatever you want.
 

Users who are viewing this thread

Back
Top Bottom