Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Printing .pdf files from directory from excel

I found out how to print from a directory -- I'm using the
following code:

ShellExecute GetForegroundWindow, "Print", _
"C:\My PDF Directory/File1.pdf", _
"", "", SW_SHOWMINNOACTIVE

Now my question, how would I do something similar for
printing a pdf file from a website? When I try to use
something similar to that above, I get nothing:

ShellExecute GetForegroundWindow, "Print", _
"http://www.centman.com/PDF/ValueInvAug2003.pdf", _
"", "", SW_SHOWMINNOACTIVE

If I substiture "Open" for "Print" the ShellExecute code
will open the document:

ShellExecute GetForegroundWindow, "Open", _
"http://www.centman.com/PDF/ValueInvAug2003.pdf", _
"", "", SW_SHOWMINNOACTIVE

I would be truly grateful for any help.

thanks, Murray Williams


-----Original Message-----
I have a spreadsheet that has links to cells that refer

to
specific .pdf report files. I'd like to be able to set

it
up so that a user could select several cells and then hit
a button that would print the .pdf files for those
selected cells by clicking on a "Print Selected PDF

Files"
button.

For example, let's say I had a directory called == C:\My
PDF Directory and it contains the following files:
File1.pdf
File2.pdf
File3.pdf
File4.pdf
File5.pdf

How would I issue a command from excel to print files 2,4
and 5 if those were the ones that were selected?

thanks,

Murray Williams
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
open all files in directory davethewelder Excel Discussion (Misc queries) 2 August 26th 08 02:01 PM
search folder/directory for a phrase inside excel files pwrichcreek Excel Discussion (Misc queries) 5 August 11th 08 09:39 PM
Unknown excel backup files created in network directory Mike Excel Discussion (Misc queries) 0 September 18th 07 01:26 PM
Files in a directory? Greg B Excel Discussion (Misc queries) 5 May 11th 05 09:46 PM
Load all files in a directory Greg B... Excel Discussion (Misc queries) 2 March 2nd 05 12:22 PM


All times are GMT +1. The time now is 03:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"