C
Craig
I'm using Access 2003....
I have a little script to loop through a table of PDF filenames and print
out the PDF files. I'm confused with the switches and don't know how to use
them...
My code is:
Private Sub cmdPrint_Click()
Dim strName As String
Dim sAcrobatReaderExe As String
With Me!lbxGetFileSpecs '(Get all selected items in listbox)
For Each varItem In .ItemsSelected
strName = .Column(1, varItem)
sAcrobatReaderExe = "C:\Program Files\Adobe\Acrobat 7.
\Acrobat\Acrobat.exe"
retval = Shell(sAcrobatReaderExe & " /h " & Chr(34) & strName &
Chr(34), 0)
Next varItem
End With
End Sub
My question is what does the " /h " do? I've also seen " /p " and " /t "
switches. Can anyone enlighten me as to what they do?
My experience shows me that " /p " opens up Acrobat, then pauses at the
print screen, forcing me to hit the "print" button for each pdf file selected
(not efficient).
I need all pdf files selected to be printed (ie, Acrobat opens, each pdf
file is printed, then Acrobat is closed).
How can I accomplish this?
Thanks.
I have a little script to loop through a table of PDF filenames and print
out the PDF files. I'm confused with the switches and don't know how to use
them...
My code is:
Private Sub cmdPrint_Click()
Dim strName As String
Dim sAcrobatReaderExe As String
With Me!lbxGetFileSpecs '(Get all selected items in listbox)
For Each varItem In .ItemsSelected
strName = .Column(1, varItem)
sAcrobatReaderExe = "C:\Program Files\Adobe\Acrobat 7.
\Acrobat\Acrobat.exe"
retval = Shell(sAcrobatReaderExe & " /h " & Chr(34) & strName &
Chr(34), 0)
Next varItem
End With
End Sub
My question is what does the " /h " do? I've also seen " /p " and " /t "
switches. Can anyone enlighten me as to what they do?
My experience shows me that " /p " opens up Acrobat, then pauses at the
print screen, forcing me to hit the "print" button for each pdf file selected
(not efficient).
I need all pdf files selected to be printed (ie, Acrobat opens, each pdf
file is printed, then Acrobat is closed).
How can I accomplish this?
Thanks.