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

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,
 
C

Chirag

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top