PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?Ym9ybw==?=
Guest
Posts: n/a
 
      16th May 2007
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,


 
Reply With Quote
 
 
 
 
Chirag
Guest
Posts: n/a
 
      16th May 2007
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

"boro" <(E-Mail Removed)> wrote in message
news:19A0F70E-F118-4B56-BA1B-(E-Mail Removed)...
> 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,
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print dialog box how can I put it in with the following code: =?Utf-8?B?UmhldHRfWQ==?= Microsoft Access Forms 6 27th Jul 2006 10:09 PM
VBA code for Print Dialog box scooter Microsoft Access Form Coding 1 19th Mar 2005 10:41 PM
How to open Print property window of selected printer directly without Print Dialog Box =?Utf-8?B?U2FjaGlu?= Microsoft C# .NET 3 2nd Apr 2004 03:46 AM
Code to open windows open/select file dialog window LisaB Microsoft Access VBA Modules 2 21st Oct 2003 02:33 PM
Re: VBA code for open print dialog Don Guillett Microsoft Excel Misc 0 8th Aug 2003 03:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:34 PM.