How to add code on my PP that will open a pdf with a PRINT DIALOG

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

On my PP2002, is there code to add to a presentation so that there is a link
and if the user clicks the link it will open another file with the PRINT
DIALOG BOX engaged so that their only next step is to click OK on the Print
dialog box?

I am stumped, your help would be appreciated.

Thank you,
 
The following code will print the specified pdf file on the default printer
(will not even prompt for OK):

---
Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" ( _
ByVal hWnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long

Sub PrintPDFFile()
ShellExecute 0, "print", "your_file_name.pdf", "", "", 1
End Sub
---

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 
Back
Top